diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-03 14:10:07 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-03 14:10:07 +0100 |
commit | 84365b6f901a9c0251a9f724a8d9f81a3787e97d (patch) | |
tree | 401e2bf99e6573d1d069f5044e7448067cdfb384 /Stages/Stage.gd | |
parent | a43499efa6c228cea3633f9661f3ff09127bd82d (diff) |
next commit
Diffstat (limited to 'Stages/Stage.gd')
-rw-r--r-- | Stages/Stage.gd | 7 |
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) |