From 182c7e3aa471c96498143c9876d20f5ba8ea3971 Mon Sep 17 00:00:00 2001 From: Cameron Taylor <cameron.taylor.ninja@gmail.com> Date: Fri, 23 Sep 2022 16:28:17 -0400 Subject: [PATCH] new highscore thingie --- source/funkin/play/ResultState.hx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/funkin/play/ResultState.hx b/source/funkin/play/ResultState.hx index 987ad3a09..132f1cbad 100644 --- a/source/funkin/play/ResultState.hx +++ b/source/funkin/play/ResultState.hx @@ -118,6 +118,14 @@ class ResultState extends MusicBeatSubstate scorePopin.visible = false; add(scorePopin); + var highscoreNew:FlxSprite = new FlxSprite(280, 580); + highscoreNew.frames = Paths.getSparrowAtlas("resultScreen/highscoreNew"); + highscoreNew.animation.addByPrefix("new", "NEW HIGHSCORE", 24); + highscoreNew.visible = false; + highscoreNew.setGraphicSize(Std.int(highscoreNew.width * 0.8)); + highscoreNew.updateHitbox(); + add(highscoreNew); + var hStuf:Int = 50; var ratingGrp:FlxTypedGroup<TallyCounter> = new FlxTypedGroup<TallyCounter>(); @@ -165,6 +173,10 @@ class ResultState extends MusicBeatSubstate { scorePopin.animation.play("score"); scorePopin.visible = true; + + highscoreNew.visible = true; + highscoreNew.animation.play("new"); + FlxTween.tween(highscoreNew, {y: highscoreNew.y + 10}, 0.8, {ease: FlxEase.quartOut}); }; boyfriend.animation.play('fall');