Add game state boolean ref docs (#1694)
* Add game state boolean doc refs * Add check for _img validity * JS guru tricks
This commit is contained in:
@ -295,9 +295,9 @@
|
||||
"game.currentTime": "Gets the remaining time (since `start countdown`) or current time (since the device started or `start stopwatch`) in milliseconds.",
|
||||
"game.gameOver": "Displays a game over animation and the score.",
|
||||
"game.invalidSprite": "Gets an invalid sprite; used to initialize locals.",
|
||||
"game.isGameOver": "Indicates if the game is display the game over sequence.",
|
||||
"game.isGameOver": "Indicates if the game is over and displaying the game over sequence.",
|
||||
"game.isPaused": "Indicates if the game rendering is paused to allow other animations",
|
||||
"game.isRunning": "Gets a value indicating if the game is still running. Returns `false` if game over.",
|
||||
"game.isRunning": "Indicates if the game is still running. Returns `false` if the game is over or paused.",
|
||||
"game.level": "Gets the current level",
|
||||
"game.levelUp": "Increments the level and display a message.",
|
||||
"game.life": "Gets the current life",
|
||||
|
@ -269,6 +269,9 @@
|
||||
"game.addScore|block": "change score by|%points",
|
||||
"game.createSprite|block": "create sprite at|x: %x|y: %y",
|
||||
"game.gameOver|block": "game over",
|
||||
"game.isGameOver|block": "is game over",
|
||||
"game.isPaused|block": "is paused",
|
||||
"game.isRunning|block": "is running",
|
||||
"game.pause|block": "pause",
|
||||
"game.removeLife|block": "remove life %life",
|
||||
"game.resume|block": "resume",
|
||||
|
Reference in New Issue
Block a user