diff --git a/Project.xml b/Project.xml index 4536d8c09..566ccbcc8 100644 --- a/Project.xml +++ b/Project.xml @@ -95,4 +95,5 @@ + diff --git a/source/PlayState.hx b/source/PlayState.hx index 1386546f7..785859183 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -602,6 +602,9 @@ class PlayState extends MusicBeatState healthHeads.setGraphicSize(Std.int(FlxMath.lerp(100, healthHeads.width, 0.98))); healthHeads.x = healthBar.x + (healthBar.width * (FlxMath.remapToRange(healthBar.percent, 0, 100, 100, 0) * 0.01)) - (healthHeads.width / 2); + if (health > 2) + health = 2; + if (healthBar.percent < 20) healthHeads.animation.play('unhealthy'); else @@ -811,7 +814,9 @@ class PlayState extends MusicBeatState if (storyPlaylist.length <= 0) { - FlxG.switchState(new TitleState()); + FlxG.sound.playMusic('assets/music/freakyMenu' + TitleState.soundExt); + + FlxG.switchState(new StoryMenuState()); StoryMenuState.weekUnlocked[1] = true; }