further elaboration on bullets

This commit is contained in:
Haze Weathers 2025-12-30 23:34:19 -06:00
parent da9111bcf2
commit 393c3b670a
16 changed files with 218 additions and 29 deletions

View file

@ -12,12 +12,11 @@ func _ready() -> void:
func _physics_process(delta: float) -> void:
if get_child_count() == 0:
queue_free()
for bullet in get_children():
if bullet is Bullet:
preset.behavior.process_bullet(bullet, delta)
else:
push_error("BulletSet does not support having non-bullet children. Removing child: ", bullet)
bullet.queue_free()
func add_bullet(bullet: Bullet) -> void: