This commit is contained in:
2025-09-03 17:36:59 +02:00
commit 8468769d70
36 changed files with 746 additions and 0 deletions

17
shoot.gd Normal file
View File

@@ -0,0 +1,17 @@
extends RigidBody2D
@export var SPEED : float = 100.0
var direction: Vector2:
set(val):
direction = val.normalized() * SPEED
var time := 0.0
func _ready() -> void:
add_to_group("shoot")
func _process(delta: float) -> void:
linear_velocity = direction
time += delta
#if time >= 2:
# self.queue_free()