1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-09-12 05:07:06 +00:00

diff stars pop in nicer

This commit is contained in:
Cameron Taylor 2023-09-20 22:57:41 -04:00 committed by EliteMasterEric
parent 9926706e6e
commit 9446f268e0
2 changed files with 11 additions and 1 deletions

View file

@ -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});

View file

@ -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;