Adding notes about game library (#537)

This commit is contained in:
Peli de Halleux 2017-09-12 10:58:49 -07:00 коммит произвёл GitHub
Родитель 572a35deea
Коммит 52e6cfbd13
2 изменённых файлов: 15 добавлений и 1 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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.