mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-02-17 04:11:23 -05:00
name change stuff and some placements
also commit lol!
This commit is contained in:
parent
588ea415dd
commit
3f42d22d5b
1 changed files with 30 additions and 19 deletions
|
@ -1,7 +1,13 @@
|
|||
package funkin.play;
|
||||
|
||||
import flixel.FlxSprite;
|
||||
import flixel.graphics.frames.FlxAtlasFrames;
|
||||
import flixel.text.FlxText;
|
||||
import flixel.tweens.FlxEase;
|
||||
import flixel.tweens.FlxTween;
|
||||
import flixel.util.FlxColor;
|
||||
import flixel.util.FlxGradient;
|
||||
import flixel.util.FlxTimer;
|
||||
|
||||
class ResultState extends MusicBeatSubstate
|
||||
{
|
||||
|
@ -18,28 +24,33 @@ class ResultState extends MusicBeatSubstate
|
|||
|
||||
FlxG.sound.playMusic(Paths.music("results" + resultsVariation));
|
||||
|
||||
var bg:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, 0xFF000000);
|
||||
bg.alpha = 0.8;
|
||||
var bg:FlxSprite = FlxGradient.createGradientFlxSprite(FlxG.width, FlxG.height, [0xFFFECC5C, 0xFFFDC05C], 90);
|
||||
bg.scrollFactor.set();
|
||||
add(bg);
|
||||
var results:FlxText = new FlxText(70, 70, 0, "RESULTS:", 32);
|
||||
|
||||
results.text += "\nTOTAL NOTES: ";
|
||||
results.text += Highscore.tallies.totalNotes;
|
||||
results.text += "\nMISSED: ";
|
||||
results.text += Highscore.tallies.missed;
|
||||
results.text += "\nSHIT: ";
|
||||
results.text += Highscore.tallies.shit;
|
||||
results.text += "\nBAD: ";
|
||||
results.text += Highscore.tallies.bad;
|
||||
results.text += "\nGOOD: ";
|
||||
results.text += Highscore.tallies.good;
|
||||
results.text += "\nSICK: ";
|
||||
results.text += Highscore.tallies.sick;
|
||||
results.text += "\nMAX COMBO: ";
|
||||
results.text += Highscore.tallies.maxCombo;
|
||||
add(results);
|
||||
results.scrollFactor.set();
|
||||
var blackTopBar:FlxSprite = new FlxSprite().loadGraphic(Paths.image("resultScreen/topBarBlack"));
|
||||
blackTopBar.y = -blackTopBar.height;
|
||||
FlxTween.tween(blackTopBar, {y: 0}, 0.4, {ease: FlxEase.quartOut, startDelay: 0.5});
|
||||
add(blackTopBar);
|
||||
|
||||
var resultsAnim:FlxSprite = new FlxSprite(-200);
|
||||
resultsAnim.frames = Paths.getSparrowAtlas("resultScreen/results");
|
||||
resultsAnim.animation.addByPrefix("result", "results", 24, false);
|
||||
resultsAnim.animation.play("result");
|
||||
add(resultsAnim);
|
||||
|
||||
var ratingsPopin:FlxSprite = new FlxSprite(-100, 150);
|
||||
ratingsPopin.frames = Paths.getSparrowAtlas("resultScreen/ratingsPopin");
|
||||
ratingsPopin.animation.addByPrefix("idle", "Categories", 24, false);
|
||||
// ratingsPopin.animation.play("idle");
|
||||
ratingsPopin.visible = false;
|
||||
add(ratingsPopin);
|
||||
|
||||
new FlxTimer().start(0.5, _ ->
|
||||
{
|
||||
ratingsPopin.animation.play("idle");
|
||||
ratingsPopin.visible = true;
|
||||
});
|
||||
|
||||
super.create();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue