game: add weapon base and sword

This commit is contained in:
2025-08-21 00:32:18 +02:00
parent 156da4898e
commit 8bd7bfa406
21 changed files with 200 additions and 163 deletions

View File

@@ -26,11 +26,13 @@ func _on_timer_timeout() -> void:
new_enemy.target = target
add_child(new_enemy)
func _on_stop_spawning(val: bool):
if val:
timer.stop()
elif timer.is_stopped():
timer.start()
func _on_set_spawn_rate(val: float):
timer.wait_time = 1 / val

View File

@@ -0,0 +1,3 @@
[gd_scene format=3 uid="uid://c2o1lpm4pimpr"]
[node name="ProjectileManager" type="Node2D"]