fixed up player direction fields
This commit is contained in:
parent
6c55d719ff
commit
c97d645a8c
1 changed files with 3 additions and 2 deletions
|
|
@ -58,9 +58,10 @@ public sealed partial class Player : CharacterBody2D, IAttackable, IHitboxOwner,
|
||||||
public bool IsJumping => !JumpTimer.IsStopped();
|
public bool IsJumping => !JumpTimer.IsStopped();
|
||||||
|
|
||||||
/// The direction the player is currently holding.
|
/// The direction the player is currently holding.
|
||||||
/// This vectors components should always be -1/0/1.
|
/// This vector's components should always be -1/0/1.
|
||||||
private Vector2 _currentRawDirection = Vector2.Zero;
|
|
||||||
private Vector2 _currentDirection = Vector2.Zero;
|
private Vector2 _currentDirection = Vector2.Zero;
|
||||||
|
/// The raw direction the player is currently holding, no guarantees.
|
||||||
|
private Vector2 _currentRawDirection = Vector2.Zero;
|
||||||
|
|
||||||
public bool IsFacingRight { get; private set; } = true;
|
public bool IsFacingRight { get; private set; } = true;
|
||||||
private AnimationNodeStateMachinePlayback _playback = null!;
|
private AnimationNodeStateMachinePlayback _playback = null!;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue