summaryrefslogtreecommitdiff
path: root/Towers/Tower.tscn
blob: 3c5241bee0d6d59f43607e951caf3732e165e169 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[gd_scene load_steps=10 format=3 uid="uid://by1x56w21o165"]

[ext_resource type="Script" path="res://Towers/Tower.gd" id="1_axo1d"]
[ext_resource type="Texture2D" uid="uid://b1b18rd0tqbar" path="res://core_outdoor.png" id="1_mrep8"]
[ext_resource type="PackedScene" uid="uid://cqktpc8c7ecn3" path="res://Game/Selection/SelectableArea.tscn" id="3_57d5u"]
[ext_resource type="Texture2D" uid="uid://ba3dmlce1wv2p" path="res://Towers/Components/Assets/frost-component.png" id="4_ccrqc"]
[ext_resource type="Texture2D" uid="uid://2djpswd6sgng" path="res://Towers/Components/Assets/burn-component.png" id="5_y7tf5"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_atm5x"]
size = Vector2(31, 31)

[sub_resource type="CircleShape2D" id="CircleShape2D_qa8kt"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_312i7"]
size = Vector2(32, 32)

[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_spp26"]
properties/0/path = NodePath(".:position")
properties/0/spawn = true
properties/0/replication_mode = 0
properties/1/path = NodePath(".:owner_id")
properties/1/spawn = true
properties/1/replication_mode = 0
properties/2/path = NodePath(".:attack_range")
properties/2/spawn = true
properties/2/replication_mode = 2
properties/3/path = NodePath("Sprite2D:modulate")
properties/3/spawn = true
properties/3/replication_mode = 0
properties/4/path = NodePath("ComponentsAnchor:modulate")
properties/4/spawn = true
properties/4/replication_mode = 0

[node name="Tower" type="StaticBody2D"]
y_sort_enabled = true
collision_layer = 4
collision_mask = 5
input_pickable = true
script = ExtResource("1_axo1d")

[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
position = Vector2(0, -19)
scale = Vector2(1.0625, 1.0625)
texture = ExtResource("1_mrep8")
centered = false
region_enabled = true
region_rect = Rect2(400, 432, 32, 48)

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(16, 16)
shape = SubResource("RectangleShape2D_atm5x")

[node name="Range" type="Area2D" parent="."]
unique_name_in_owner = true
collision_layer = 0

[node name="CollisionShape2D" type="CollisionShape2D" parent="Range"]
position = Vector2(16, 16)
shape = SubResource("CircleShape2D_qa8kt")

[node name="ShootCooldown" type="Timer" parent="."]
unique_name_in_owner = true
one_shot = true

[node name="SelectableArea" parent="." instance=ExtResource("3_57d5u")]

[node name="CollisionShape2D" type="CollisionShape2D" parent="SelectableArea"]
position = Vector2(16, 16)
shape = SubResource("RectangleShape2D_312i7")

[node name="ComponentsAnchor" type="Marker2D" parent="."]
position = Vector2(0, 32)

[node name="HUD" type="CanvasLayer" parent="."]
unique_name_in_owner = true

[node name="VBoxContainer" type="VBoxContainer" parent="HUD"]
offset_left = 64.0
offset_right = 140.0
offset_bottom = 77.0

[node name="Data" type="Label" parent="HUD/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2

[node name="HBoxContainer" type="HBoxContainer" parent="HUD/VBoxContainer"]
layout_mode = 2

[node name="Button1" type="Button" parent="HUD/VBoxContainer/HBoxContainer"]
layout_mode = 2
text = "+Range"

[node name="Button2" type="Button" parent="HUD/VBoxContainer/HBoxContainer"]
layout_mode = 2
text = "+Power"

[node name="Button3" type="Button" parent="HUD/VBoxContainer/HBoxContainer"]
layout_mode = 2
text = "+Speed"

[node name="Components" type="VBoxContainer" parent="HUD/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2

[node name="HBoxContainer" type="HBoxContainer" parent="HUD/VBoxContainer/Components"]
layout_mode = 2
mouse_default_cursor_shape = 2

[node name="TextureRect" type="TextureRect" parent="HUD/VBoxContainer/Components/HBoxContainer"]
custom_minimum_size = Vector2(32, 0)
layout_mode = 2
texture = ExtResource("4_ccrqc")
stretch_mode = 5

[node name="Label" type="Label" parent="HUD/VBoxContainer/Components/HBoxContainer"]
layout_mode = 2
text = "Frost"

[node name="HBoxContainer2" type="HBoxContainer" parent="HUD/VBoxContainer/Components"]
layout_mode = 2
mouse_default_cursor_shape = 2

[node name="TextureRect" type="TextureRect" parent="HUD/VBoxContainer/Components/HBoxContainer2"]
custom_minimum_size = Vector2(32, 0)
layout_mode = 2
texture = ExtResource("5_y7tf5")
stretch_mode = 5

[node name="Label" type="Label" parent="HUD/VBoxContainer/Components/HBoxContainer2"]
layout_mode = 2
text = "Burn"

[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_spp26")

[connection signal="input_event" from="." to="." method="_on_input_event"]
[connection signal="tree_exiting" from="." to="." method="_on_tree_exiting"]
[connection signal="body_entered" from="Range" to="." method="_on_range_body_entered"]
[connection signal="body_exited" from="Range" to="." method="_on_range_body_exited"]
[connection signal="hover_enter" from="SelectableArea" to="." method="_on_selectable_area_hover_enter"]
[connection signal="hover_exit" from="SelectableArea" to="." method="_on_selectable_area_hover_exit"]
[connection signal="select" from="SelectableArea" to="." method="_on_selectable_area_select"]
[connection signal="pressed" from="HUD/VBoxContainer/HBoxContainer/Button1" to="." method="_on_button_1_pressed"]
[connection signal="pressed" from="HUD/VBoxContainer/HBoxContainer/Button2" to="." method="_on_button_2_pressed"]
[connection signal="pressed" from="HUD/VBoxContainer/HBoxContainer/Button3" to="." method="_on_button_3_pressed"]
[connection signal="gui_input" from="HUD/VBoxContainer/Components/HBoxContainer" to="." method="_on_h_box_container_gui_input"]
[connection signal="gui_input" from="HUD/VBoxContainer/Components/HBoxContainer2" to="." method="_on_h_box_container_2_gui_input"]