I have embraced modding

This commit is contained in:
KadeDev
2021-04-02 16:49:02 -07:00
parent 33e236fd45
commit aa054a828c
4 changed files with 29 additions and 18 deletions

View File

@ -124,6 +124,8 @@ class PlayState extends MusicBeatState
private var camHUD:FlxCamera;
private var camGame:FlxCamera;
public static var offsetTesting:Bool = false;
var notesHitArray:Array<Date> = [];
var currentFrames:Int = 0;
@ -827,7 +829,7 @@ class PlayState extends MusicBeatState
scoreTxt.x = healthBarBG.x + healthBarBG.width / 2;
scoreTxt.setFormat(Paths.font("vcr.ttf"), 16, FlxColor.WHITE, CENTER, FlxTextBorderStyle.OUTLINE,FlxColor.BLACK);
scoreTxt.scrollFactor.set();
if (SONG.song.contains('offsetTest'))
if (offsetTesting)
scoreTxt.x += 300;
add(scoreTxt);
@ -1609,7 +1611,7 @@ class PlayState extends MusicBeatState
super.update(elapsed);
if (!SONG.song.contains('offsetTest'))
if (!offsetTesting)
{
if (FlxG.save.data.accuracyDisplay)
{
@ -1967,7 +1969,7 @@ class PlayState extends MusicBeatState
#end
}
if (SONG.song.contains('offsetTest'))
if (offsetTesting)
{
FlxG.sound.playMusic(Paths.music('freakyMenu'));
LoadingState.loadAndSwitchState(new OptionsMenu());
@ -2169,7 +2171,7 @@ class PlayState extends MusicBeatState
currentTimingShown.text = msTiming + "ms";
currentTimingShown.size = 20;
if (msTiming >= 0.03 && SONG.song.contains('offsetTest'))
if (msTiming >= 0.03 && offsetTesting)
{
//Remove Outliers
hits.shift();