make aphids spawn honeydew and make anthill spawn a start ant

This commit is contained in:
2024-10-08 04:29:33 +10:00
parent 024bc2b7d9
commit f144e79ea5
9 changed files with 98 additions and 28 deletions

View File

@@ -44,6 +44,7 @@ var showing_after_set: bool = false
func _ready() -> void:
assert(collision_shape != null, "collision_shape missing!")
assert(radius_indicator != null, "radius_indicator missing!")
assert(audio_player != null, "audio_player missing!")
body_entered.connect(_on_body_entered)
body_exited.connect(_on_body_exited)
@@ -189,6 +190,7 @@ func _deposit() -> void:
audio_player.play_polyphonic(SoundManager.swoosh())
await item.start_moving(anthill.global_position).moved
audio_player.play_polyphonic(SoundManager.pop())
item.remove_from_spawner()
_erase_honeydew(item)
item.queue_free()
anthill.deposit_honeydew(1)