Credits scene no longer plays while not focused

This commit is contained in:
Ishaan Bhardwaj 2021-01-06 16:10:01 -05:00
parent 84634d6933
commit b732ebb213

View File

@ -8,7 +8,9 @@ function CreditsScene:new()
end end
function CreditsScene:update() function CreditsScene:update()
if love.window.hasFocus() then
self.frames = self.frames + 1 self.frames = self.frames + 1
end
if self.frames >= 4200 then if self.frames >= 4200 then
playSE("mode_decide") playSE("mode_decide")
scene = TitleScene() scene = TitleScene()