summaryrefslogtreecommitdiff
path: root/scenes/wyvern.tscn
blob: a369573e1372ce95f466326343a2af3ce051ba4b (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
[gd_scene load_steps=5 format=3 uid="uid://d37i2dwyynqdw"]

[ext_resource type="Script" uid="uid://cfhnd8k1sy116" path="res://scripts/wyvern.gd" id="1_xynyr"]
[ext_resource type="Script" uid="uid://dl7a53e1auku7" path="res://scripts/wyvern_animation_handler.gd" id="2_wbji5"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_wu3n4"]
size = Vector2(16, 16)

[sub_resource type="CircleShape2D" id="CircleShape2D_rpypk"]
radius = 48.0

[node name="Wyvern" type="StaticBody2D"]
script = ExtResource("1_xynyr")

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_wu3n4")
disabled = true

[node name="Aim" type="Marker2D" parent="."]
position = Vector2(6, 4)

[node name="Tower" type="Area2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="Tower"]
shape = SubResource("CircleShape2D_rpypk")

[node name="FireTimer" type="Timer" parent="."]
wait_time = 2.0

[node name="Sprite2D" type="Sprite2D" parent="."]
region_rect = Rect2(496, 16, 16, 16)
script = ExtResource("2_wbji5")

[connection signal="body_entered" from="Tower" to="." method="_on_tower_body_entered"]
[connection signal="body_exited" from="Tower" to="." method="_on_tower_body_exited"]
[connection signal="timeout" from="FireTimer" to="." method="_on_fire_timer_timeout"]