From 9446f268e0acf427cc203930586f3e5db99c9e18 Mon Sep 17 00:00:00 2001
From: Cameron Taylor <cameron.taylor.ninja@gmail.com>
Date: Wed, 20 Sep 2023 22:57:41 -0400
Subject: [PATCH] diff stars pop in nicer

---
 source/funkin/FreeplayState.hx                 | 10 ++++++++++
 source/funkin/freeplayStuff/DifficultyStars.hx |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/source/funkin/FreeplayState.hx b/source/funkin/FreeplayState.hx
index 0f9615927..906591656 100644
--- a/source/funkin/FreeplayState.hx
+++ b/source/funkin/FreeplayState.hx
@@ -331,7 +331,9 @@ class FreeplayState extends MusicBeatSubState
 
     var albumTitle:FlxSprite = new FlxSprite(947, 491).loadGraphic(Paths.image('freeplay/albumTitle-fnfvol1'));
     var albumArtist:FlxSprite = new FlxSprite(1010, 607).loadGraphic(Paths.image('freeplay/albumArtist-kawaisprite'));
+    var difficultyStars:DifficultyStars = new DifficultyStars(140, 39);
 
+    difficultyStars.stars.visible = false;
     albumTitle.visible = false;
     albumArtist.visible = false;
 
@@ -348,9 +350,16 @@ class FreeplayState extends MusicBeatSubState
         speed: 0.2,
         wait: 0.2
       });
+    exitMovers.set([difficultyStars],
+      {
+        x: FlxG.width * 1.2,
+        speed: 0.2,
+        wait: 0.3
+      });
 
     add(albumTitle);
     add(albumArtist);
+    add(difficultyStars);
 
     var overhangStuff:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, 64, FlxColor.BLACK);
     overhangStuff.y -= overhangStuff.height;
@@ -439,6 +448,7 @@ class FreeplayState extends MusicBeatSubState
 
       new FlxTimer().start(35 / 24, function(_) {
         albumArtist.visible = true;
+        difficultyStars.stars.visible = true;
       });
 
       FlxTween.tween(grpDifficulties, {x: 90}, 0.6, {ease: FlxEase.quartOut});
diff --git a/source/funkin/freeplayStuff/DifficultyStars.hx b/source/funkin/freeplayStuff/DifficultyStars.hx
index cc98fb07b..8611727be 100644
--- a/source/funkin/freeplayStuff/DifficultyStars.hx
+++ b/source/funkin/freeplayStuff/DifficultyStars.hx
@@ -17,7 +17,7 @@ class DifficultyStars extends FlxSpriteGroup
    */
   public var difficulty(default, set):Int = 1;
 
-  var stars:FlxAtlasSprite;
+  public var stars:FlxAtlasSprite;
 
   var flames:FreeplayFlames;