Migrate docs from the other repo
This commit is contained in:
24
docs/reference/js/game-library/game-over.md
Normal file
24
docs/reference/js/game-library/game-over.md
Normal file
@ -0,0 +1,24 @@
|
||||
# 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.
|
||||
|
||||

|
||||
|
||||
## Touch Develop
|
||||
|
||||
You can end the game by calling the `game -> game over` function:
|
||||
|
||||
```
|
||||
game.gameOver()
|
||||
```
|
||||
|
||||
### Lessons
|
||||
|
||||
[game of chance](/microbit/lessons/game-of-chance)
|
||||
|
Reference in New Issue
Block a user