mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 17:05:54 +00:00
stuff
This commit is contained in:
parent
9e3c75ca1d
commit
2b53936f8b
6 changed files with 54 additions and 7 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue