pxt-calliope/docs/reference/game/game-over.md
2016-06-11 22:28:57 -04:00

21 lines
508 B
Markdown

# Game Over
The game library
The game library supports simple single-player time-based games. The game can end the game by calling the `game over` function
## Block Editor
You can end the game by calling the `game over ` function. In this example, if BBC micro:bit's answer to the question is GAME OVER, GAME OVER will be displayed to end the game.
![](/static/mb/game-library/game-over-0.png)
## KindScript
You can end the game by calling the `game -> game over` function:
```
game.gameOver()
```