504 B
504 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.onButtonPressed(Button.B, function () {
if (game.isRunning()) {
game.gameOver()
}
})