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 03e3934..0000000 Binary files a/Source/gfx/aboutme.png and /dev/null differ 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