game: add weapon base and sword
This commit is contained in:
@@ -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
|
||||
|
3
scenes/managers/projectile_manager.tscn
Normal file
3
scenes/managers/projectile_manager.tscn
Normal file
@@ -0,0 +1,3 @@
|
||||
[gd_scene format=3 uid="uid://c2o1lpm4pimpr"]
|
||||
|
||||
[node name="ProjectileManager" type="Node2D"]
|
Reference in New Issue
Block a user