diff --git a/source/PauseSubState.hx b/source/PauseSubState.hx index f2e3a0b..0d78ca9 100644 --- a/source/PauseSubState.hx +++ b/source/PauseSubState.hx @@ -240,7 +240,10 @@ class PauseSubState extends MusicBeatSubstate if (FlxG.save.data.fpsCap > 290) (cast (Lib.current.getChildAt(0), Main)).setFPSCap(290); - FlxG.switchState(new MainMenuState()); + if (PlayState.isStoryMode) + FlxG.switchState(new StoryMenuState()); + else + FlxG.switchState(new FreeplayState()); } } diff --git a/source/ResultsScreen.hx b/source/ResultsScreen.hx index 255ab8c..d48a231 100644 --- a/source/ResultsScreen.hx +++ b/source/ResultsScreen.hx @@ -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; diff --git a/source/TitleState.hx b/source/TitleState.hx index f716247..0651cbd 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -165,8 +165,7 @@ class TitleState extends MusicBeatState logoBl = new FlxSprite(-150, 1500); logoBl.frames = Paths.getSparrowAtlas('KadeEngineLogoBumpin'); logoBl.antialiasing = true; - logoBl.animation.addByPrefix('bump', 'logo bumpin', 24); - logoBl.animation.play('bump'); + logoBl.animation.addByPrefix('bump', 'logo bumpin', 24, false); logoBl.updateHitbox(); // logoBl.screenCenter(); // logoBl.color = FlxColor.BLACK; @@ -174,8 +173,7 @@ class TitleState extends MusicBeatState logoBl = new FlxSprite(-150, -100); logoBl.frames = Paths.getSparrowAtlas('logoBumpin'); logoBl.antialiasing = true; - logoBl.animation.addByPrefix('bump', 'logo bumpin', 24); - logoBl.animation.play('bump'); + logoBl.animation.addByPrefix('bump', 'logo bumpin', 24, false); logoBl.updateHitbox(); // logoBl.screenCenter(); // logoBl.color = FlxColor.BLACK; @@ -378,7 +376,7 @@ class TitleState extends MusicBeatState { super.beatHit(); - logoBl.animation.play('bump'); + logoBl.animation.play('bump', true); danceLeft = !danceLeft; if (danceLeft)