This commit is contained in:
MaddoScientisto 2024-05-02 12:50:08 +02:00
commit 2b53936f8b
6 changed files with 54 additions and 7 deletions

View file

@ -21,7 +21,7 @@ public partial class Bullet : Area2D
_direction = normalized;
Debug.WriteLine($"Bullet Shot at direction {direction.X} {direction.Y}");
//Debug.WriteLine($"Bullet Shot at direction {direction.X} {direction.Y}");
}
@ -33,7 +33,7 @@ public partial class Bullet : Area2D
private void _on_visible_on_screen_notifier_2d_screen_exited()
{
Debug.WriteLine("Destroy bullet out of screen");
//Debug.WriteLine("Destroy bullet out of screen");
QueueFree();
}

View file

@ -27,7 +27,7 @@ public partial class PlayerMovement : CharacterBody2D
public override void _Ready()
{
_animatedSprite = GetNode<AnimatedSprite2D>("./Smoothing2D/AnimatedSprite2D");
_crosshair = GetNode<Sprite2D>("./Crosshair");
_crosshair = GetNode<Sprite2D>("./Smoothing2D/Crosshair");
_movementDirection = Vector2.Zero;
_facingDirection = Vector2.Zero;