Skip to content

Commit

Permalink
why create comboSpr? lol
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSantiagoYT committed Oct 22, 2024
1 parent 01bd2a8 commit 7c6e915
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions source/editors/EditorPlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -856,32 +856,17 @@ class EditorPlayState extends MusicBeatState
rating.x += ClientPrefs.comboOffset[0];
rating.y -= ClientPrefs.comboOffset[1];

var comboSpr:FlxSprite = new FlxSprite().loadGraphic(Paths.image(pixelShitPart1 + 'combo' + pixelShitPart2));
comboSpr.screenCenter();
comboSpr.x = coolText.x;
comboSpr.acceleration.y = 600;
comboSpr.velocity.y -= 150;
comboSpr.visible = !ClientPrefs.hideHud;
comboSpr.x += ClientPrefs.comboOffset[0];
comboSpr.y -= ClientPrefs.comboOffset[1];

comboSpr.velocity.x += FlxG.random.int(1, 10);
comboGroup.add(rating);

if (!PlayState.isPixelStage)
{
rating.setGraphicSize(Std.int(rating.width * 0.7));
rating.antialiasing = ClientPrefs.globalAntialiasing;
comboSpr.setGraphicSize(Std.int(comboSpr.width * 0.7));
comboSpr.antialiasing = ClientPrefs.globalAntialiasing;
}
else
{
rating.setGraphicSize(Std.int(rating.width * PlayState.daPixelZoom * 0.85));
comboSpr.setGraphicSize(Std.int(comboSpr.width * PlayState.daPixelZoom * 0.85));
}

comboSpr.updateHitbox();
rating.updateHitbox();

var seperatedScore:Array<Int> = [];
Expand Down Expand Up @@ -936,15 +921,9 @@ class EditorPlayState extends MusicBeatState
coolText.text = Std.string(seperatedScore);

FlxTween.tween(rating, {alpha: 0}, 0.2, {
startDelay: Conductor.crochet * 0.001
});

FlxTween.tween(comboSpr, {alpha: 0}, 0.2, {
onComplete: function(tween:FlxTween)
{
coolText.destroy();
comboSpr.destroy();

rating.destroy();
},
startDelay: Conductor.crochet * 0.001
Expand Down

0 comments on commit 7c6e915

Please sign in to comment.