5f7a8e5301
* update yotta defaults for 16kb devices * refactor deprecated blocks * updates for button events * update button events * update refference * update docs * update docs * update button event blocks * update docs * update block id
528 B
528 B
is Running
Find out if the game is currently running or not.
game.isRunning()
Returns
- a boolean value that is
true
if the game is running orfalse
if not.
Example
If the game is currently running, end the game if button B is pressed.
input.onButtonEvent(Button.B, input.buttonEventClick(), function () {
if (game.isRunning()) {
game.gameOver()
}
})