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
function CreditsScene:update()
self.frames = self.frames + 1
if love.window.hasFocus() then
self.frames = self.frames + 1
end
if self.frames >= 4200 then
playSE("mode_decide")
scene = TitleScene()