removed erroneous draw

This commit is contained in:
Lilith Schier 2026-07-14 15:35:27 +02:00
parent c0ad61933e
commit 0e68f347d6

View file

@ -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;