From 9956c74e68cbc4ce58f15c75fe9e2c197a4ec53e Mon Sep 17 00:00:00 2001 From: Kade M Date: Sat, 5 Jun 2021 10:52:56 -0700 Subject: [PATCH] fix score --- source/GameplayCustomizeState.hx | 4 +++- source/PlayState.hx | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/source/GameplayCustomizeState.hx b/source/GameplayCustomizeState.hx index b3991c8..26407b5 100644 --- a/source/GameplayCustomizeState.hx +++ b/source/GameplayCustomizeState.hx @@ -24,7 +24,7 @@ class GameplayCustomizeState extends MusicBeatState var sick:FlxSprite = new FlxSprite().loadGraphic(Paths.image('sick','shared')); - var bf:Boyfriend = new Boyfriend(770, 450, 'bf'); + var bf:Boyfriend; var dad:Character; var strumLine:FlxSprite; @@ -59,6 +59,8 @@ class GameplayCustomizeState extends MusicBeatState dad = new Character(100, 100, 'dad'); + bf = new Boyfriend(770, 450, 'bf'); + var camPos:FlxPoint = new FlxPoint(dad.getGraphicMidpoint().x + 400, dad.getGraphicMidpoint().y); camFollow.setPosition(camPos.x, camPos.y); diff --git a/source/PlayState.hx b/source/PlayState.hx index 2d82860..b521a86 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -1786,6 +1786,8 @@ class PlayState extends MusicBeatState super.update(elapsed); scoreTxt.text = Ratings.CalculateRanking(songScore,songScoreDef,nps,maxNPS,accuracy); + if (FlxG.save.data.accuracyDisplay) + scoreTxt.text = "Score: " + songScore; if (FlxG.keys.justPressed.ENTER && startedCountdown && canPause) { persistentUpdate = false;