From 9904cfc9b81a835d359c794de70eabd93b1bc94b Mon Sep 17 00:00:00 2001 From: Pascal Batty Date: Sun, 28 Apr 2019 18:56:35 +0200 Subject: [PATCH] A button jumps, B button opens market --- right_coin.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/right_coin.lua b/right_coin.lua index 9acf77b..b7cf911 100644 --- a/right_coin.lua +++ b/right_coin.lua @@ -156,7 +156,7 @@ do -- Player self.isFlipped = false else self.vx = 0 end - if btnp(0) and self.vy == 0 then self.vy = j end + if btnp(4) and self.vy == 0 then self.vy = j end end function Player:update() @@ -433,7 +433,7 @@ function updateGame() p:update() if mget(p.x/s,p.y/s) == 48 or mget(p.x/s,p.y/s) == 49 then - if btnp(4) then -- A (Z key) + if btnp(5) then -- B (X key) currentState = GameState.market end end