diff --git a/index.html b/index.html index 564c99c..8ef61cb 100644 --- a/index.html +++ b/index.html @@ -42,7 +42,7 @@ your projects.
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.
@@ -80,7 +80,7 @@ function love.load() endA gamestate can define all callbacks that LÖVE defines. In addition, there are -callbacks for initalizing, entering and leaving a state:
+callbacks for initializing, entering and leaving a state:init()
pop()
ing another state.update()
draw()
focus()
keypressed()
keypressed()
keyreleased()
mousepressed()
mousereleased()
When using registerEvents()
, all these
callbacks will be called by the corresponding LÖVE callbacks and receive
-receive the same arguments (e.g. state:update(dt)
will be called by
+the same arguments (e.g. state:update(dt)
will be called by
love.update(dt)
).
Creates a new timer instance that is independent of the global timer: It will -manage it's own list of scheduled functions and does not in any way affect the +manage its own list of scheduled functions and does not in any way affect the the global timer. Likewise, the global timer does not affect timer instances.
Creates a new signal registry that is independent of the default registry: It -will manage it's own list of signals and does not in any way affect the the +will manage its own list of signals and does not in any way affect the the global registry. Likewise, the global registry does not affect the instance.
A camera utility for LÖVE. A camera can "look" at a position. It can zoom in -and out and it can rotate it's view. In the background, this is done by +and out and it can rotate its view. In the background, this is done by actually moving, scaling and rotating everything in the game world. But don't worry about that.