pause results music when game isn't focused
This commit is contained in:
parent
e28b418139
commit
72ae46a848
@ -57,6 +57,7 @@ class ResultsScreen extends FlxSubState
|
||||
music = new FlxSound().loadEmbedded(Paths.music('breakfast'), true, true);
|
||||
music.volume = 0;
|
||||
music.play(false, FlxG.random.int(0, Std.int(music.length / 2)));
|
||||
FlxG.sound.list.add(music);
|
||||
|
||||
background.alpha = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user