mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 21:59:01 -06:00
Credits scene no longer plays while not focused
This commit is contained in:
parent
84634d6933
commit
b732ebb213
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user