game over

This commit is contained in:
Yoshman29
2022-12-05 23:10:37 +01:00
parent e9654cbc89
commit ec1714e8d8
4 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -70,7 +70,7 @@
THEN UHHH I USED THE NAME OF THE FONT WITH SETFORMAT() ON THE TEXT!!!
NOT USING A DIRECT THING TO THE ASSET!!!
-->
<assets path="assets/fonts" embed='true'/>
<!-- <assets path="assets/fonts" embed='true'/> -->
<!-- _______________________________ Libraries ______________________________ -->
<haxelib name="hxCodec"/>
+1 -1
View File
@@ -1 +1 @@
1391
1393
+3 -2
View File
@@ -77,14 +77,15 @@ class GameOverSubstate extends MusicBeatSubstate
FlxG.switchState(new FreeplayState());
}
if (!isEnding && ((!lossSFX.playing) || (character.animation.curAnim != null && character.animation.curAnim.name == "firstDeath" && character.animation.curAnim.finished)) && (FlxG.sound.music == null || !FlxG.sound.music.playing))
if (!isEnding && ((!lossSFX.playing) || (character.animation.curAnim != null && character.animation.curAnim.name == "firstDeath" && character.animation.curAnim.finished)) && (FlxG.sound.music == null || !FlxG.sound.music.playing)) {
CoolUtil.playMusic(Paths.music(gameOverSong), 100);
}
}
override function beatHit(curBeat:Int)
{
super.beatHit(curBeat);
if (!lossSFX.playing)
if (FlxG.sound.music != null && FlxG.sound.music.playing)
character.playAnim("deathLoop", true, DANCE);
}
-3
View File
@@ -1005,10 +1005,7 @@ class PlayState extends MusicBeatState
// RESET = Quick Game Over Screen
if (controls.RESET)
{
health = 0;
trace("RESET = True");
}
// CHEAT = brandon's a pussy
if (controls.CHEAT)