summaryrefslogtreecommitdiff
path: root/Tower.tscn
blob: d33df5a518374677ac1d8037927b03aa51a44b47 (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
[gd_scene load_steps=5 format=3 uid="uid://by1x56w21o165"]

[ext_resource type="Script" path="res://Tower.gd" id="1_axo1d"]
[ext_resource type="Texture2D" uid="uid://b1b18rd0tqbar" path="res://core_outdoor.png" id="1_mrep8"]

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

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

[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="."]
collision_layer = 0

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

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

[connection signal="input_event" from="." to="." method="_on_input_event"]
[connection signal="mouse_entered" from="." to="." method="_on_mouse_entered"]
[connection signal="mouse_exited" from="." to="." method="_on_mouse_exited"]
[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"]