Skip to content

Commit bd7c6a4

Browse files
committed
PurpleBoosterExplodeLaunch separate axis boost is less precise with analog input
1 parent e562371 commit bd7c6a4

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

source/Entities/PurpleBooster.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,7 @@ public static void PurpleBoostBegin() {
296296
bool? flag;
297297
if (level == null) {
298298
flag = null;
299-
}
300-
else {
299+
} else {
301300
MapMetaModeProperties meta = level.Session.MapData.GetMeta();
302301
flag = meta?.TheoInBubble;
303302
}
@@ -429,12 +428,10 @@ public static void PurpleBoosterExplodeLaunch(Player player, DynData<Player> pla
429428
}
430429

431430
player.Speed = 250f * -vector;
432-
if (Input.MoveX.Value == Math.Sign(player.Speed.X)) {
433-
player.Speed.X *= 1.2f;
434-
}
435-
if (Input.MoveY.Value == Math.Sign(player.Speed.Y)) {
436-
player.Speed.Y *= 1.2f;
437-
}
431+
432+
Vector2 aim = Input.GetAimVector(player.Facing).EightWayNormal().Sign();
433+
if (aim.X == Math.Sign(player.Speed.X)) player.Speed.X *= 1.2f;
434+
if (aim.Y == Math.Sign(player.Speed.Y)) player.Speed.Y *= 1.2f;
438435

439436
SlashFx.Burst(player.Center, player.Speed.Angle());
440437
if (!player.Inventory.NoRefills) {

0 commit comments

Comments
 (0)