map select
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user