diff --git a/src/player/Player.cs b/src/player/Player.cs index 5a11b08..09d6d68 100644 --- a/src/player/Player.cs +++ b/src/player/Player.cs @@ -66,6 +66,8 @@ public sealed partial class Player : CharacterBody2D, IAttackable, IHitboxOwner, public float JumpAscentRemainingTime { get; private set; } public bool IsJumping { get; private set; } public float JumpAllowedTime { get; private set; } + /// The direction the player is currently holding. + /// This vectors components should always be -1/0/1. private Vector2 _currentDirection = Vector2.Zero; private bool _isFacingRight = true; private AnimationNodeStateMachinePlayback _playback = null!; @@ -367,11 +369,6 @@ public sealed partial class Player : CharacterBody2D, IAttackable, IHitboxOwner, }; } - public override void _Draw() - { - DrawLine(GlobalPosition, GlobalPosition + _currentDirection * 20f, Colors.Aquamarine); - } - private bool IsInputVecDown(Vector2 vec) { return Mathf.Abs(vec.AngleTo(Vector2.Down)) < DownInputAngle && vec.Length() > 0.01f;