more poliiiish

This commit is contained in:
Cameron Taylor 2020-10-31 22:29:49 -07:00
parent 98a5401f4b
commit cd24092161
2 changed files with 7 additions and 1 deletions

View File

@ -95,4 +95,5 @@
<!--Place custom nodes like icons here (higher priority to override the HaxeFlixel icon)-->
<icon path="art/icon.png"/>
<!-- <haxedef name="SKIP_TO_PLAYSTATE" if="debug" /> -->
<haxedef name="NG_LOGIN" />
</project>

View File

@ -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;
}