summaryrefslogtreecommitdiff
path: root/Towers/Components/RangeComponent.tscn
blob: 104752939690df9002cd948a1c561342536f091c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[gd_scene load_steps=5 format=3 uid="uid://b0bdw5n6p5k8u"]

[ext_resource type="PackedScene" uid="uid://cly4agfoqhq2q" path="res://Towers/Components/TowerComponent.tscn" id="1_738xf"]
[ext_resource type="Script" path="res://Towers/Components/RangeComponent.gd" id="2_4fk2a"]
[ext_resource type="Texture2D" uid="uid://dx07y4scyi5a1" path="res://Towers/Components/Assets/range-component.png" id="3_7nqma"]

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

[node name="RangeTowerComponent" instance=ExtResource("1_738xf")]
script = ExtResource("2_4fk2a")

[node name="Sprite" parent="." index="0"]
texture = ExtResource("3_7nqma")

[node name="Range" type="Area2D" parent="." index="1"]
collision_layer = 0

[node name="CollisionShape2D" type="CollisionShape2D" parent="Range" index="0"]
shape = SubResource("CircleShape2D_q388v")

[connection signal="body_entered" from="Range" to="." method="_on_range_body_entered"]
[connection signal="body_exited" from="Range" to="." method="_on_range_body_exited"]