skip cutscenes

This commit is contained in:
PossiblyAxolotl 2022-08-03 15:04:14 -06:00
parent ea719c7632
commit 3e773eba54
4 changed files with 36 additions and 8 deletions

View file

@ -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

View file

@ -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()

View file

@ -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

View file

@ -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