idmillington / undum

A client-side framework for narrative hypertext interactive fiction.
https://idmillington.github.com/undum
MIT License
336 stars 80 forks source link

Exposing interactivity state #9

Closed juhana closed 13 years ago

juhana commented 13 years ago

I've added an isInteractive() function that can be used to test whether the game is being played normally or a saved game being replayed. This is useful when the game has elements that shouldn't be repeated when the game is being loaded, like sound effects (they would all play simultaneously), alerts/dialogs, or if the player is prompted for text input during the game.

idmillington commented 13 years ago

Perfect! Thanks, and thanks for the docs.