move player update to updateGame()

This commit is contained in:
Fabien Freling 2019-04-28 14:36:43 +02:00
parent 1f7b66ceb9
commit 6c380461bb

View file

@ -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()