game over
This commit is contained in:
+1
-1
@@ -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
@@ -1 +1 @@
|
||||
1391
|
||||
1393
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user