Commas For Story Mode Score

This commit is contained in:
JVNpixels
2026-03-14 23:14:15 -06:00
committed by Hundrec
parent c37862445f
commit 04fffe8ade
+3 -1
View File
@@ -9,6 +9,7 @@ import flixel.tweens.FlxTween;
import flixel.math.FlxMath;
import flixel.util.FlxColor;
import flixel.util.FlxTimer;
import flixel.util.FlxStringUtil;
import funkin.audio.FunkinSound;
import funkin.data.story.level.LevelRegistry;
import funkin.data.song.SongRegistry;
@@ -324,7 +325,8 @@ class StoryMenuState extends MusicBeatState
highScoreLerp = Std.int(MathUtil.snap(MathUtil.smoothLerpPrecision(highScoreLerp, highScore, elapsed, 0.307), highScore, 1));
scoreText.text = 'LEVEL SCORE: ${Math.round(highScoreLerp)}';
var commaSeparated:Bool = true;
scoreText.text = 'LEVEL SCORE: ${FlxStringUtil.formatMoney(highScoreLerp, false, commaSeparated)}';
levelTitleText.text = currentLevel.getTitle();