From 84b5c9e0fd1b38340eac61250aaccd69fd3c414b Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Fri, 23 Sep 2022 15:42:12 -0400 Subject: [PATCH] score popin thingie --- source/funkin/play/ResultState.hx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/funkin/play/ResultState.hx b/source/funkin/play/ResultState.hx index 3020af346..cfbf285d6 100644 --- a/source/funkin/play/ResultState.hx +++ b/source/funkin/play/ResultState.hx @@ -31,6 +31,9 @@ class ResultState extends MusicBeatSubstate var cacheBullShit = new FlxSprite().loadGraphic(Paths.image("resultScreen/soundSystem")); add(cacheBullShit); + var dumb = new FlxSprite().loadGraphic(Paths.image("resultScreen/scorePopin")); + add(dumb); + var bg:FlxSprite = FlxGradient.createGradientFlxSprite(FlxG.width, FlxG.height, [0xFFFECC5C, 0xFFFDC05C], 90); bg.scrollFactor.set(); add(bg); @@ -109,6 +112,12 @@ class ResultState extends MusicBeatSubstate ratingsPopin.antialiasing = true; add(ratingsPopin); + var scorePopin:FlxSprite = new FlxSprite(-180, 520); + scorePopin.frames = Paths.getSparrowAtlas("resultScreen/scorePopin"); + scorePopin.animation.addByPrefix("score", "tally score", 24, false); + scorePopin.visible = false; + add(scorePopin); + var hStuf:Int = 50; var ratingGrp:FlxTypedGroup = new FlxTypedGroup(); @@ -152,6 +161,12 @@ class ResultState extends MusicBeatSubstate ratingsPopin.animation.play("idle"); ratingsPopin.visible = true; + ratingsPopin.animation.finishCallback = anim -> + { + scorePopin.animation.play("score"); + scorePopin.visible = true; + }; + boyfriend.animation.play('fall'); boyfriend.visible = true;