Skip to content

Commit

Permalink
Merge pull request #111 from tobiasvl/patch-1
Browse files Browse the repository at this point in the history
Fix typos in gamestate docs
  • Loading branch information
vrld authored Oct 14, 2018
2 parents f44eb19 + 70d2a20 commit fd0f6c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/gamestate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.
Expand All @@ -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**::
Expand Down

0 comments on commit fd0f6c8

Please sign in to comment.