diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-10-24 18:31:08 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-10-24 18:31:08 +0200 |
commit | a495681453c97578cc4a408d6919c6879524a603 (patch) | |
tree | 649c813cf26370a6ae762038b46c8e5fb075ea64 /Game/Client.gd | |
parent | 6db6465d1b938ec494cd66c9984bff5cc14bde11 (diff) |
next commit
Diffstat (limited to 'Game/Client.gd')
-rw-r--r-- | Game/Client.gd | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Game/Client.gd b/Game/Client.gd index 98a8e6c..f4fd1e6 100644 --- a/Game/Client.gd +++ b/Game/Client.gd @@ -6,6 +6,8 @@ signal stage_state_changed(state: State) @warning_ignore("unused_signal") signal placed_tower(tower: Tower) +signal multi_select_finished + var state: State : set(value): @@ -35,13 +37,13 @@ func place_tower(tower: Tower): tower.owner_id = network_id tower.name = "Tower@" + str(network_id) + "@" + str(Time.get_ticks_usec()) - tower.attack_range = [ - current_stage.map.tile_set.tile_size.x * 2, - current_stage.map.tile_set.tile_size.x * 3, - current_stage.map.tile_set.tile_size.x * 4, - ].pick_random() - tower.attack_power = [1, 2, 3, 4].pick_random() - tower.attack_speed = [1, 2, 3, 4].pick_random() + #tower.attack_range = [ + #current_stage.map.tile_set.tile_size.x * 2, + #current_stage.map.tile_set.tile_size.x * 3, + #current_stage.map.tile_set.tile_size.x * 4, + #].pick_random() + #tower.attack_power = [1, 2, 3, 4].pick_random() + #tower.attack_speed = [1, 2, 3, 4].pick_random() current_stage.place_tower.rpc(inst_to_dict(tower.to_network_data())) @@ -69,6 +71,7 @@ func multi_select(layer: int): selection_area.select.connect(func(nodes): for node in nodes: Client.select_tower(node) + multi_select_finished.emit() ) get_tree().current_scene.add_child(selection_area) |