From df5ddd78851625f15c201a1ba5e5367d19858c43 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Sat, 31 Oct 2020 22:29:49 -0700 Subject: [PATCH] more poliiiish --- Project.xml | 1 + source/PlayState.hx | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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; }