BLUEBALL BUTTON OPTION

This commit is contained in:
CyndaquilDAC
2021-05-16 14:28:50 -05:00
parent aff87fad55
commit f7880bab43
4 changed files with 63 additions and 7 deletions

View File

@ -1,5 +1,6 @@
package;
import flixel.input.keyboard.FlxKey;
import haxe.Exception;
import openfl.geom.Matrix;
import openfl.display.BitmapData;
@ -307,8 +308,6 @@ class PlayState extends MusicBeatState
trace('INFORMATION ABOUT WHAT U PLAYIN WIT:\nFRAMES: ' + Conductor.safeFrames + '\nZONE: ' + Conductor.safeZoneOffset + '\nTS: ' + Conductor.timeScale + '\nBotPlay : ' + FlxG.save.data.botplay);
//dialogue shit
switch (SONG.song.toLowerCase())
{
@ -726,8 +725,6 @@ class PlayState extends MusicBeatState
gfVersion = 'gf-christmas';
case 'gf-pixel':
gfVersion = 'gf-pixel';
case 'gf':
gfVersion = 'gf';
default:
gfVersion = 'gf';
}
@ -1788,7 +1785,7 @@ class PlayState extends MusicBeatState
// 1 / 1000 chance for Gitaroo Man easter egg
if (FlxG.random.bool(0.1))
{
// gitaroo man easter egg
trace('GITAROO MAN EASTER EGG');
FlxG.switchState(new GitarooPause());
}
else
@ -1852,7 +1849,19 @@ class PlayState extends MusicBeatState
}
#end
}
if (FlxG.keys.justPressed.ZERO)
{
FlxG.switchState(new AnimationDebug(SONG.player1));
#if windows
if (luaModchart != null)
{
luaModchart.die();
luaModchart = null;
}
#end
}
#end
if (startingSong)
@ -2122,6 +2131,29 @@ class PlayState extends MusicBeatState
// FlxG.switchState(new GameOverState(boyfriend.getScreenPosition().x, boyfriend.getScreenPosition().y));
}
if (FlxG.save.data.resetButton)
{
if(FlxG.keys.justPressed.R)
{
boyfriend.stunned = true;
persistentUpdate = false;
persistentDraw = false;
paused = true;
vocals.stop();
FlxG.sound.music.stop();
openSubState(new GameOverSubstate(boyfriend.getScreenPosition().x, boyfriend.getScreenPosition().y));
#if windows
// Game Over doesn't get his own variable because it's only used here
DiscordClient.changePresence("GAME OVER -- " + SONG.song + " (" + storyDifficultyText + ") " + Ratings.GenerateLetterRank(accuracy),"\nAcc: " + HelperFunctions.truncateFloat(accuracy, 2) + "% | Score: " + songScore + " | Misses: " + misses , iconRPC);
#end
// FlxG.switchState(new GameOverState(boyfriend.getScreenPosition().x, boyfriend.getScreenPosition().y));
}
}
if (unspawnNotes[0] != null)
{