skip cutscenes
This commit is contained in:
parent
ea719c7632
commit
3e773eba54
4 changed files with 36 additions and 8 deletions
|
@ -173,9 +173,3 @@ function playdate.gameWillTerminate()
|
||||||
playdate.datastore.write({savedLevel=map,savedDeaths=deaths},"savegame")
|
playdate.datastore.write({savedLevel=map,savedDeaths=deaths},"savegame")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function playdate.debugDraw()
|
|
||||||
gfx.setDrawOffset(0,0)
|
|
||||||
gfx.drawText("DEBUG ON",0,220)
|
|
||||||
print(playdate.graphics.sprite.spriteCount())
|
|
||||||
end
|
|
|
@ -125,6 +125,39 @@ local function playerWin()
|
||||||
exists = false
|
exists = false
|
||||||
dead = true
|
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
|
end
|
||||||
|
|
||||||
function updatePlayer()
|
function updatePlayer()
|
||||||
|
|
|
@ -3,6 +3,6 @@ author=PossiblyAxolotl
|
||||||
description=Help a crew of rockets collect energy to get back home!
|
description=Help a crew of rockets collect energy to get back home!
|
||||||
bundleID=com.PossiblyAxolotl.RocketBytes
|
bundleID=com.PossiblyAxolotl.RocketBytes
|
||||||
launchSoundPath=launcher/rocketing
|
launchSoundPath=launcher/rocketing
|
||||||
version=1.1.0
|
version=1.1.2
|
||||||
buildNumber=1
|
buildNumber=1
|
||||||
imagePath=launcher
|
imagePath=launcher
|
|
@ -1,6 +1,7 @@
|
||||||
AndrewDavidJ, SHiLLySiT - compatibility testing
|
AndrewDavidJ, SHiLLySiT - compatibility testing
|
||||||
PD DISCORD MEMBERS FOR SUGGESTIONS AND HELP
|
PD DISCORD MEMBERS FOR SUGGESTIONS AND HELP
|
||||||
Gant / Tiny Yellow Machine - playing the game on stream and being super supportive
|
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
|
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
|
You're all awesome
|
Loading…
Reference in a new issue