Tweaked some numbers to get a better "swarm"

This commit is contained in:
Douwe Ravers
2024-10-07 23:50:50 +02:00
parent af7a46cd23
commit 7f0591298a
27 changed files with 1403 additions and 26 deletions

View File

@@ -13,6 +13,7 @@ func _on_attack_timer_timeout() -> void:
if ant is EnemyAnt and other_ant is not EnemyAnt:
other_ant.hit(randi_range(0, ant.damage))
attack.emit()
if ant is SoldierAnt: return
for area in get_overlapping_areas():
if area.get_parent() is Building:
var building := area.get_parent() as Building