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.
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.