modifies behaviour of how the difficulty stars appear

This commit is contained in:
Cameron Taylor 2024-06-04 16:38:21 -04:00
parent cd85bcf222
commit 29a33c8815
2 changed files with 12 additions and 6 deletions

View file

@ -66,7 +66,7 @@ class AlbumRoll extends FlxSpriteGroup
add(newAlbumArt);
difficultyStars = new DifficultyStars(140, 39);
difficultyStars.stars.visible = false;
difficultyStars.visible = false;
add(difficultyStars);
}
@ -149,7 +149,7 @@ class AlbumRoll extends FlxSpriteGroup
newAlbumArt.visible = true;
newAlbumArt.playAnimation(animNames.get('$albumId-active'), false, false, false);
difficultyStars.stars.visible = false;
difficultyStars.visible = false;
new FlxTimer().start(0.75, function(_) {
// showTitle();
showStars();
@ -172,6 +172,7 @@ class AlbumRoll extends FlxSpriteGroup
*/
public function showStars():Void
{
difficultyStars.stars.visible = true; // true;
difficultyStars.visible = true; // true;
difficultyStars.flameCheck();
}
}

View file

@ -19,7 +19,7 @@ class DifficultyStars extends FlxSpriteGroup
public var stars:FlxAtlasSprite;
var flames:FreeplayFlames;
public var flames:FreeplayFlames;
var hsvShader:HSVShader;
@ -80,11 +80,16 @@ class DifficultyStars extends FlxSpriteGroup
curDifficulty = difficulty - 1;
}
flameCheck();
return difficulty;
}
public function flameCheck():Void
{
if (difficulty > 10) flames.flameCount = difficulty - 10;
else
flames.flameCount = 0;
return difficulty;
}
function set_curDifficulty(value:Int):Int