implemented a little dash animation

This commit is contained in:
Lilith Schier 2026-08-26 13:39:58 +02:00
parent 77a7075703
commit 26dc7d4f57
4 changed files with 38 additions and 8 deletions

View file

@ -65,6 +65,7 @@ public sealed partial class Player : CharacterBody2D, IAttackable, IHitboxOwner,
private AnimationNodeStateMachinePlayback _playback = null!;
public List<BufferedInput> InputBuffer { get; } = [];
public bool IsInWater { get; private set; }
public bool IsDashing => !DashTimer.IsStopped();
public Vector2 DashDirection { get; set; }
public float DashPoints { get; set; }
public float BankedDashPoints { get; set; }
@ -436,6 +437,7 @@ public sealed partial class Player : CharacterBody2D, IAttackable, IHitboxOwner,
: _currentDirection
).Normalized();
DashHitbox.StartAttack();
_playback.Travel("side_dash");
}
private void Parry() => ParryTimer.Start();