1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-09 00:04:42 +00:00

blueball check

This commit is contained in:
Cameron Taylor 2023-06-04 01:19:08 -04:00
parent 2d772a526b
commit 7a04a2d774

View file

@ -162,12 +162,14 @@ class GameOverSubstate extends MusicBeatSubstate
// KEYBOARD ONLY: Restart the level when pressing the assigned key. // KEYBOARD ONLY: Restart the level when pressing the assigned key.
if (controls.ACCEPT && blueballed) if (controls.ACCEPT && blueballed)
{ {
blueballed = false;
confirmDeath(); confirmDeath();
} }
// KEYBOARD ONLY: Return to the menu when pressing the assigned key. // KEYBOARD ONLY: Return to the menu when pressing the assigned key.
if (controls.BACK) if (controls.BACK)
{ {
blueballed = false;
PlayState.deathCounter = 0; PlayState.deathCounter = 0;
PlayState.seenCutscene = false; PlayState.seenCutscene = false;
gameOverMusic.stop(); gameOverMusic.stop();
@ -269,7 +271,7 @@ class GameOverSubstate extends MusicBeatSubstate
} }
} }
var blueballed:Bool = false; static var blueballed:Bool = false;
/** /**
* Play the sound effect that occurs when * Play the sound effect that occurs when