pxt-calliope/docs/reference/js/game-library/game-over.md

25 lines
572 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# Game Over
The game library #docs
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)
## Touch Develop
You can end the game by calling the `game -> game over` function:
```
game.gameOver()
```
### Lessons
2016-04-13 17:27:45 +02:00
[game of chance](/lessons/game-of-chance)
2016-03-26 00:47:20 +01:00