Finally got pausing for intro working correctly.

This commit is contained in:
Storm dragon 2015-12-30 17:03:30 -05:00
parent 21466a5e2d
commit bf3838f84a

View File

@ -78,10 +78,9 @@ end
local function game_intro() local function game_intro()
local sound = trySDL(mixer.loadWAV, "sounds/game-intro.ogg") local sound = trySDL(mixer.loadWAV, "sounds/game-intro.ogg")
sound:playChannel(-1, 0) sound:playChannel(-1, 0)
-- It would be better if the SDL.delay could calculate the link of the intro sound and use that instead of 4 * 1000 while mixer.playing(-1) > 0 do
-- while sound.sfxIsPlaying(-1) do SDL.delay(100)
SDL.delay(5000) end
-- end
end end
-- Game variables -- Game variables