2.1.28, initiation update to PXT v5.28.24 (#54)

This commit is contained in:
Amerlander
2019-12-02 05:58:26 +01:00
committed by Peli de Halleux
parent 38a964516e
commit 5c114a0c57
1261 changed files with 50692 additions and 21604 deletions

View File

@@ -0,0 +1,25 @@
# is Game Over
Find out if the game is over or not.
```sig
game.isGameOver()
```
## Returns
* a [boolean](/types/boolean) value that is `true` if the game is over or `false` if not.
# Example
Be kind and give the player some points for trying.
```blocks
if (game.isGameOver() && game.score() < 10) {
game.addScore(10 - game.score())
}
```
## See also
[is running](/reference/game/is-running),
[is paused](/reference/game/is-paused)