further elaboration on bullets
This commit is contained in:
parent
da9111bcf2
commit
393c3b670a
16 changed files with 218 additions and 29 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue