From 6c380461bbed9e96e40826655a8f32ae027a2036 Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Sun, 28 Apr 2019 14:36:43 +0200 Subject: [PATCH] move player update to updateGame() --- right_coin.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/right_coin.lua b/right_coin.lua index 4e8cdec..ad9ff25 100644 --- a/right_coin.lua +++ b/right_coin.lua @@ -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()