49 lines
1.8 KiB
Text
49 lines
1.8 KiB
Text
[gd_scene format=3 uid="uid://bosbrhc3oprau"]
|
|
|
|
[ext_resource type="Script" uid="uid://c7744j3mcamav" path="res://creatures/birb/birb.gd" id="1_lyo8d"]
|
|
[ext_resource type="SpriteFrames" uid="uid://cyf7ij04grglc" path="res://creatures/birb/birb.aseprite" id="2_ba6cv"]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_feb5d"]
|
|
radius = 5.0
|
|
height = 14.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_lyo8d"]
|
|
radius = 52.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_ba6cv"]
|
|
radius = 110.0
|
|
|
|
[node name="Birb" type="CharacterBody2D" unique_id=428810294]
|
|
collision_layer = 4
|
|
script = ExtResource("1_lyo8d")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=581143480]
|
|
sprite_frames = ExtResource("2_ba6cv")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1744954023]
|
|
position = Vector2(0, 1)
|
|
shape = SubResource("CapsuleShape2D_feb5d")
|
|
|
|
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="." unique_id=1295779953]
|
|
|
|
[node name="Detection" type="Area2D" parent="." unique_id=151830843]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
monitorable = false
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Detection" unique_id=1217467707]
|
|
shape = SubResource("CircleShape2D_lyo8d")
|
|
debug_color = Color(0, 0.6, 0.69803923, 0.16862746)
|
|
|
|
[node name="Chase" type="Area2D" parent="." unique_id=172000915]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
monitorable = false
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Chase" unique_id=567870323]
|
|
shape = SubResource("CircleShape2D_ba6cv")
|
|
debug_color = Color(0, 0.6, 0.69803923, 0)
|
|
|
|
[connection signal="body_entered" from="Detection" to="." method="_on_detection_body_entered"]
|
|
[connection signal="body_exited" from="Chase" to="." method="_on_chase_body_exited"]
|