summaryrefslogtreecommitdiff
path: root/Stages/Stage.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Stages/Stage.gd')
-rw-r--r--Stages/Stage.gd7
1 files changed, 7 insertions, 0 deletions
diff --git a/Stages/Stage.gd b/Stages/Stage.gd
index a3608ee..3d3eceb 100644
--- a/Stages/Stage.gd
+++ b/Stages/Stage.gd
@@ -45,6 +45,13 @@ func _place_tower(parent: Node2D, tower: Tower):
tower.get_node("ComponentsAnchor").modulate = player.get_color()
fill_tower_region(tower, true)
+
+ var particles = preload("res://Towers/PlacementParticles.tscn").instantiate()
+ particles.global_position = tower.get_node("GroundAnchor").global_position
+ particles.play_sound = multiplayer.get_unique_id() == tower.owner_id
+ particles.scale = tower.scale
+ parent.add_child(particles)
+
parent.add_child(tower, true)