move player update to updateGame()
This commit is contained in:
parent
1f7b66ceb9
commit
6c380461bb
|
@ -144,8 +144,6 @@ end
|
|||
|
||||
function drawGame()
|
||||
map(0,0,30,17)
|
||||
p:direct()
|
||||
p:update()
|
||||
p:draw()
|
||||
|
||||
-- Life
|
||||
|
@ -303,6 +301,8 @@ function updateGame()
|
|||
if btnp(5) then -- B (X key)
|
||||
currentState = GameState.gameover
|
||||
end
|
||||
p:direct()
|
||||
p:update()
|
||||
end
|
||||
|
||||
function updateMarket()
|
||||
|
|
Loading…
Reference in a new issue