Adding notes about game library (#537)

This commit is contained in:
Peli de Halleux 2017-09-12 10:58:49 -07:00 committed by GitHub
parent 572a35deea
commit 52e6cfbd13
2 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,13 @@
# Game
Make games with sprites. Keep score and control gameplay.
Make games with sprites. Keep score and controls gameplay.
## ~ hint
Once the game engine is started, it will render the sprites to the screen and potentially override any kind of animation you are trying to show.
Using [game pause](/reference/game/pause) and [game resume](/reference/game/resume) to disable and enable the game rendering loop.
## ~
## Sprites

View File

@ -17,6 +17,13 @@ game.createSprite(2, 2);
`0` and `4` mean the edges of the screen, and `2` means in the middle.
## ~ hint
Once the game engine is started, it will render the sprites to the screen and potentially override any kind of animation you are trying to show.
Using [game pause](/reference/game/pause) and [game resume](/reference/game/resume) to disable and enable the game rendering loop.
## ~
## Example
This program starts a sprite in the middle of the screen.