mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-23 23:33:55 +00:00
more poliiiish
This commit is contained in:
parent
c3d2179395
commit
0831aa257a
|
@ -95,4 +95,5 @@
|
||||||
<!--Place custom nodes like icons here (higher priority to override the HaxeFlixel icon)-->
|
<!--Place custom nodes like icons here (higher priority to override the HaxeFlixel icon)-->
|
||||||
<icon path="art/icon.png"/>
|
<icon path="art/icon.png"/>
|
||||||
<!-- <haxedef name="SKIP_TO_PLAYSTATE" if="debug" /> -->
|
<!-- <haxedef name="SKIP_TO_PLAYSTATE" if="debug" /> -->
|
||||||
|
<haxedef name="NG_LOGIN" />
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -602,6 +602,9 @@ class PlayState extends MusicBeatState
|
||||||
healthHeads.setGraphicSize(Std.int(FlxMath.lerp(100, healthHeads.width, 0.98)));
|
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);
|
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)
|
if (healthBar.percent < 20)
|
||||||
healthHeads.animation.play('unhealthy');
|
healthHeads.animation.play('unhealthy');
|
||||||
else
|
else
|
||||||
|
@ -811,7 +814,9 @@ class PlayState extends MusicBeatState
|
||||||
|
|
||||||
if (storyPlaylist.length <= 0)
|
if (storyPlaylist.length <= 0)
|
||||||
{
|
{
|
||||||
FlxG.switchState(new TitleState());
|
FlxG.sound.playMusic('assets/music/freakyMenu' + TitleState.soundExt);
|
||||||
|
|
||||||
|
FlxG.switchState(new StoryMenuState());
|
||||||
|
|
||||||
StoryMenuState.weekUnlocked[1] = true;
|
StoryMenuState.weekUnlocked[1] = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue