mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
Fixed a typo in the gamestate docs
Sorry about Atom doing its thing with empty lines...
This commit is contained in:
parent
5e02dcdba2
commit
7713d054b3
@ -101,6 +101,8 @@ corresponding LÖVE callbacks and receive receive the same arguments (e.g.
|
|||||||
**Example**::
|
**Example**::
|
||||||
|
|
||||||
menu = {} -- previously: Gamestate.new()
|
menu = {} -- previously: Gamestate.new()
|
||||||
|
|
||||||
|
function menu:init()
|
||||||
self.background = love.graphics.newImage('bg.jpg')
|
self.background = love.graphics.newImage('bg.jpg')
|
||||||
Buttons.initialize()
|
Buttons.initialize()
|
||||||
end
|
end
|
||||||
@ -346,4 +348,3 @@ This is by done by overwriting the love callbacks, e.g.::
|
|||||||
Gamestate.registerEvents{'draw', 'update', 'quit'}
|
Gamestate.registerEvents{'draw', 'update', 'quit'}
|
||||||
Gamestate.switch(menu)
|
Gamestate.switch(menu)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user