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