mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
Merge pull request #111 from tobiasvl/patch-1
Fix typos in gamestate docs
This commit is contained in:
commit
fd0f6c870b
@ -5,7 +5,7 @@ hump.gamestate
|
|||||||
|
|
||||||
Gamestate = require "hump.gamestate"
|
Gamestate = require "hump.gamestate"
|
||||||
|
|
||||||
A gamestate encapsulates independent data an behaviour in a single table.
|
A gamestate encapsulates independent data and behaviour in a single table.
|
||||||
|
|
||||||
A typical game could consist of a menu-state, a level-state and a game-over-state.
|
A typical game could consist of a menu-state, a level-state and a game-over-state.
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ callbacks for initalizing, entering and leaving a state:
|
|||||||
Draw on the screen. Called every frame.
|
Draw on the screen. Called every frame.
|
||||||
|
|
||||||
``focus()``
|
``focus()``
|
||||||
Called if the window gets or looses focus.
|
Called if the window gets or loses focus.
|
||||||
|
|
||||||
``keypressed()``
|
``keypressed()``
|
||||||
Triggered when a key is pressed.
|
Triggered when a key is pressed.
|
||||||
@ -106,7 +106,7 @@ callbacks for initalizing, entering and leaving a state:
|
|||||||
Called on quitting the game. Only called on the active gamestate.
|
Called on quitting the game. Only called on the active gamestate.
|
||||||
|
|
||||||
When using :func:`Gamestate.registerEvents`, all these callbacks will be called by the
|
When using :func:`Gamestate.registerEvents`, all these callbacks will be called by the
|
||||||
corresponding LÖVE callbacks and receive receive the same arguments (e.g.
|
corresponding LÖVE callbacks and receive the same arguments (e.g.
|
||||||
``state:update(dt)`` will be called by ``love.update(dt)``).
|
``state:update(dt)`` will be called by ``love.update(dt)``).
|
||||||
|
|
||||||
**Example**::
|
**Example**::
|
||||||
|
Loading…
Reference in New Issue
Block a user