haha , also highscore.hx breaks switch

This commit is contained in:
Brandon
2020-11-07 15:52:21 -05:00
parent 473429d3ce
commit 4787234621
6 changed files with 29 additions and 3 deletions

View File

@ -119,6 +119,8 @@ class FreeplayState extends MusicBeatState
{
super.update(elapsed);
trace("Freeplay Menu Updating");
lerpScore = Math.floor(FlxMath.lerp(lerpScore, intendedScore, 0.4));
scoreText.text = "PERSONAL BEST:" + lerpScore;
@ -169,7 +171,9 @@ class FreeplayState extends MusicBeatState
if (curDifficulty > 2)
curDifficulty = 0;
#if !switch
intendedScore = Highscore.getScore(songs[curSelected], curDifficulty);
#end
switch (curDifficulty)
{
@ -197,7 +201,9 @@ class FreeplayState extends MusicBeatState
// selector.y = (70 * curSelected) + 30;
#if !switch
intendedScore = Highscore.getScore(songs[curSelected], curDifficulty);
#end
// lerpScore = 0;
var bullShit:Int = 0;