From 9ccf995c640aa3f332bc4ade9aab78fc3813f18a Mon Sep 17 00:00:00 2001 From: PossiblyAxolotl Date: Tue, 9 Aug 2022 11:14:16 -0600 Subject: [PATCH] all btns --- Source/Player.lua | 9 ++++++--- Source/gfx/aboutme.png | Bin 1985 -> 0 bytes Source/pdxinfo | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) delete mode 100644 Source/gfx/aboutme.png diff --git a/Source/Player.lua b/Source/Player.lua index e375cf7..ddad6c2 100644 --- a/Source/Player.lua +++ b/Source/Player.lua @@ -163,8 +163,11 @@ end function updatePlayer() playdate.timer.updateTimers() sprRocket:setImage(imgRocket) + + local inp = (playdate.buttonIsPressed(playdate.kButtonUp) or playdate.buttonIsPressed(playdate.kButtonDown) or playdate.buttonIsPressed(playdate.kButtonLeft) or playdate.buttonIsPressed(playdate.kButtonRight) or playdate.buttonIsPressed(playdate.kButtonA) or playdate.buttonIsPressed(playdate.kButtonB)) + if active == true then - if playdate.buttonIsPressed(playdate.kButtonUp) or playdate.buttonIsPressed(playdate.kButtonA) then + if inp then velocity.x = velocity.x + math.sin(math.rad(playdate.getCrankPosition())) /2 velocity.y = velocity.y - math.cos(math.rad(playdate.getCrankPosition())) /2 end @@ -184,7 +187,7 @@ function updatePlayer() end elseif exists == true then - if (playdate.buttonJustPressed(playdate.kButtonUp) or playdate.buttonJustPressed(playdate.kButtonA)) and playdate.isCrankDocked() == false then + if inp and playdate.isCrankDocked() == false then active = true end local cx, cy = gfx.getDrawOffset() @@ -207,7 +210,7 @@ function updatePlayer() sprRocket:setRotation(playdate.getCrankPosition()) - if active and (playdate.buttonIsPressed(playdate.kButtonA) or playdate.buttonIsPressed(playdate.kButtonUp)) then + if active and inp then sprRocket:setImage(loopFire:image()) end end diff --git a/Source/gfx/aboutme.png b/Source/gfx/aboutme.png deleted file mode 100644 index 03e39346e2c090be0c8411f8df56127d4a6b9f2e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1985 zcmb_ceN<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D-!L9K>*jmeWHc+|02u_j%Y zcze;@Srv>xN@qm>5c7LJ!2mRlX1UWpH?MAbva&7cf&`d3~RTNgQ(Y|@?B`MuB^ z&_|%VFISapn%oaDD#64+qs{ z)nvvy8)Eu6hm5Px8huQiKKG29Vr~#LVWi1!=CO; zRCd#m)%*tOuFhOpH#_VOc5EOtYge>_J1e|L)=o&-ejW;AoXg{VIOU}c?`wsr8UOtP7Q19(h zCK3CKyAC4aUu?#09Lf8aXSG{$2o=#2wbA>nAD`Jo)&Ic%`-c6GZ$WFwQie}V_V*uj PJCWir3DK<^Q;+=(7r0Rv diff --git a/Source/pdxinfo b/Source/pdxinfo index bc15c24..a46976c 100644 --- a/Source/pdxinfo +++ b/Source/pdxinfo @@ -3,6 +3,6 @@ author=PossiblyAxolotl description=Help a crew of rockets collect energy to get back home! bundleID=com.PossiblyAxolotl.RocketBytes launchSoundPath=launcher/rocketing -version=1.1.2 +version=1.1.3 buildNumber=1 imagePath=launcher \ No newline at end of file