Merge pull request #111 from tobiasvl/patch-1

Fix typos in gamestate docs
This commit is contained in:
Matthias Richter 2018-10-14 13:37:43 +02:00 committed by GitHub
commit fd0f6c870b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ 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.
@ -82,7 +82,7 @@ callbacks for initalizing, entering and leaving a state:
Draw on the screen. Called every frame.
``focus()``
Called if the window gets or looses focus.
Called if the window gets or loses focus.
``keypressed()``
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.
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)``).
**Example**::