move player update to updateGame()

master
Fabien Freling 2019-04-28 14:36:43 +02:00
parent 1f7b66ceb9
commit 6c380461bb
1 changed files with 2 additions and 2 deletions

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