mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-30 03:25:47 -05:00
score popin thingie
This commit is contained in:
parent
58fe9c8f8c
commit
84b5c9e0fd
1 changed files with 15 additions and 0 deletions
|
@ -31,6 +31,9 @@ class ResultState extends MusicBeatSubstate
|
||||||
var cacheBullShit = new FlxSprite().loadGraphic(Paths.image("resultScreen/soundSystem"));
|
var cacheBullShit = new FlxSprite().loadGraphic(Paths.image("resultScreen/soundSystem"));
|
||||||
add(cacheBullShit);
|
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);
|
var bg:FlxSprite = FlxGradient.createGradientFlxSprite(FlxG.width, FlxG.height, [0xFFFECC5C, 0xFFFDC05C], 90);
|
||||||
bg.scrollFactor.set();
|
bg.scrollFactor.set();
|
||||||
add(bg);
|
add(bg);
|
||||||
|
@ -109,6 +112,12 @@ class ResultState extends MusicBeatSubstate
|
||||||
ratingsPopin.antialiasing = true;
|
ratingsPopin.antialiasing = true;
|
||||||
add(ratingsPopin);
|
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 hStuf:Int = 50;
|
||||||
|
|
||||||
var ratingGrp:FlxTypedGroup<TallyCounter> = new FlxTypedGroup<TallyCounter>();
|
var ratingGrp:FlxTypedGroup<TallyCounter> = new FlxTypedGroup<TallyCounter>();
|
||||||
|
@ -152,6 +161,12 @@ class ResultState extends MusicBeatSubstate
|
||||||
ratingsPopin.animation.play("idle");
|
ratingsPopin.animation.play("idle");
|
||||||
ratingsPopin.visible = true;
|
ratingsPopin.visible = true;
|
||||||
|
|
||||||
|
ratingsPopin.animation.finishCallback = anim ->
|
||||||
|
{
|
||||||
|
scorePopin.animation.play("score");
|
||||||
|
scorePopin.visible = true;
|
||||||
|
};
|
||||||
|
|
||||||
boyfriend.animation.play('fall');
|
boyfriend.animation.play('fall');
|
||||||
boyfriend.visible = true;
|
boyfriend.visible = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue