From 3e773eba54ffb35db93bef405b01479f935bc111 Mon Sep 17 00:00:00 2001 From: PossiblyAxolotl Date: Wed, 3 Aug 2022 15:04:14 -0600 Subject: [PATCH] skip cutscenes --- Source/Main.lua | 6 ------ Source/Player.lua | 33 +++++++++++++++++++++++++++++++++ Source/pdxinfo | 2 +- Source/thankyous.txt | 3 ++- 4 files changed, 36 insertions(+), 8 deletions(-) diff --git a/Source/Main.lua b/Source/Main.lua index 1ffc680..6740c9e 100644 --- a/Source/Main.lua +++ b/Source/Main.lua @@ -172,10 +172,4 @@ function playdate.gameWillTerminate() playdate.datastore.delete("savegame.json") playdate.datastore.write({savedLevel=map,savedDeaths=deaths},"savegame") end -end - -function playdate.debugDraw() - gfx.setDrawOffset(0,0) - gfx.drawText("DEBUG ON",0,220) - print(playdate.graphics.sprite.spriteCount()) end \ No newline at end of file diff --git a/Source/Player.lua b/Source/Player.lua index 155a651..e375cf7 100644 --- a/Source/Player.lua +++ b/Source/Player.lua @@ -125,6 +125,39 @@ local function playerWin() exists = false dead = true + if playdate.buttonIsPressed(playdate.kButtonA) then + song:stop() + song:setFinishCallback(nil) + if next then + map = next + end + + local ts = playdate.timer.allTimers() + for i = 1, #ts, 1 do + ts[i]:remove() + end + + totalEnergy = 0 + showEnergy = false + energy = 0 + killPlayer() + removeMap() + killBlades() + if mode == "game" and next then + playdate.datastore.delete("savegame") + playdate.datastore.write({savedLevel=map,savedDeaths=deaths},"savegame") + next = nil + addMapSave(map) + elseif mode == "game" then + beginEndCutscene() + next = nil + else + next = nil + mainMenuCreation() + createMenu(mainmenu) + end + end + end function updatePlayer() diff --git a/Source/pdxinfo b/Source/pdxinfo index e347a3e..bc15c24 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.0 +version=1.1.2 buildNumber=1 imagePath=launcher \ No newline at end of file diff --git a/Source/thankyous.txt b/Source/thankyous.txt index d91ef51..ff0b1a0 100644 --- a/Source/thankyous.txt +++ b/Source/thankyous.txt @@ -1,6 +1,7 @@ AndrewDavidJ, SHiLLySiT - compatibility testing PD DISCORD MEMBERS FOR SUGGESTIONS AND HELP Gant / Tiny Yellow Machine - playing the game on stream and being super supportive -My dad - buying me a playdate for hannukah +My dad - buying me a playdate for hannukah lol My dad and mom - supporting me and passion +all the people who donated to this project, even when they could have played it for free You're all awesome \ No newline at end of file