removed erroneous draw
This commit is contained in:
parent
c0ad61933e
commit
0e68f347d6
1 changed files with 2 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue