map select

This commit is contained in:
2025-04-11 01:25:01 +02:00
parent 19fe3e3d13
commit 95b2c825db
14 changed files with 416 additions and 19 deletions

View File

@@ -132,21 +132,24 @@ end
function scene:start()
scene.super.start(self)
self.optionsMenu:addMenuItem("Main Menu", function() Noble.transition(Menu) end)
Noble.showFPS = false
if scene.musicEnabled then
scene.levelAudio:play(0)
end
end
function scene:enter()
scene.super.enter(self)
local soundTable = playdate.sound.playingSources()
for i=1, #soundTable do
soundTable[i]:stop()
end
scene.buttonTimeout = 100
Noble.Input.setHandler(scene.inputHandler)
if scene.musicEnabled then
scene.levelAudio:play(0)
end
local text =
[[The drone is assembled and operational. We are ready for the mission.
@@ -226,6 +229,10 @@ function scene:update()
self.tickTimer:remove()
screenShake(100, 5)
Noble.Input.setEnabled(false)
playdate.timer.performAfterDelay(2500, function() -- Return to the start after failure
Noble.Input.setEnabled(true)
Noble.transition(DroneCardSelector, nil, Noble.Transition.SpotlightMask);
end)
return
end