Skip to content

Commit afd0628

Browse files
Changes 396
1 parent 262b060 commit afd0628

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

‎source/objects/Popup.hx‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ enum PopupType {
88
}
99

1010
class Popup extends FlxSprite {
11+
public var baseAcc:FlxPoint = FlxPoint.get();
12+
public var baseVel:FlxPoint = FlxPoint.get();
13+
1114
public var type:PopupType = NONE;
1215
public var popUpTime:Float = 0;
1316
public static var noVelocity:Bool = false;
@@ -71,11 +74,11 @@ class Popup extends FlxSprite {
7174
if (!noVelocity) {
7275
var rate:Float = i.playbackRate;
7376
if (popUptype == RATING) {
74-
velocity.set(-FlxG.random.int(0, 10) * rate + i.popupVel.x, -FlxG.random.int(140, 175) * rate + i.popupVel.y);
75-
acceleration.set(i.popupAcc.x * baseRate, 550 * baseRate + i.popupAcc.y);
77+
velocity.set(-FlxG.random.int(0, 10) * rate + baseVel.x, -FlxG.random.int(140, 175) * rate + baseVel.y);
78+
acceleration.set(baseAcc.x * baseRate, 550 * baseRate + baseAcc.y);
7679
} else {
77-
velocity.set(FlxG.random.float(-5, 5) * rate + i.popupVel.x, -FlxG.random.int(130, 150) * rate + i.popupVel.y);
78-
acceleration.set(i.popupAcc.x * baseRate, FlxG.random.int(250, 300) * baseRate + i.popupAcc.y);
80+
velocity.set(FlxG.random.float(-5, 5) * rate + baseVel.x, -FlxG.random.int(130, 150) * rate + baseVel.y);
81+
acceleration.set(baseAcc.x * baseRate, FlxG.random.int(250, 300) * baseRate + baseAcc.y);
7982
}
8083
}
8184

‎source/states/PlayState.hx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,15 +1771,13 @@ class PlayState extends MusicBeatState {
17711771
note.rating = daRating.name;
17721772
songScore += daRating.score;
17731773

1774-
if (daRating.noteSplash && !note.noteSplashData.disabled) spawnNoteSplashOnNote(note);
1774+
if (Settings.data.splashAlpha != 0 && daRating.noteSplash && !note.noteSplashData.disabled) spawnNoteSplashOnNote(note);
17751775
if (!note.ratingDisabled) {
17761776
songHits++; totalPlayed++;
17771777
recalculateRating();
17781778
}
17791779
}
17801780

1781-
public var popupAcc:FlxPoint = FlxPoint.get();
1782-
public var popupVel:FlxPoint = FlxPoint.get();
17831781
function popUpScore(note:Note = null):Void {
17841782
var seperatedScore:Array<Null<Float>> = [];
17851783
var tempCombo:Null<Float> = combo;

0 commit comments

Comments
 (0)