37 lines
1.3 KiB
Text
37 lines
1.3 KiB
Text
[gd_scene load_steps=5 format=3 uid="uid://cpl4tllohhyel"]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/EntitySystem/Bunny.gd" id="1_1kj2b"]
|
|
[ext_resource type="Texture2D" uid="uid://df2fluk0dlqar" path="res://Assets/Sprites/Bunny/bad_bunny_spritesheet.png" id="2_v8p70"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_sedmr"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_itvjj"]
|
|
radius = 14.0
|
|
|
|
[node name="Bunny" type="CharacterBody2D" node_paths=PackedStringArray("agent")]
|
|
collision_layer = 4
|
|
collision_mask = 15
|
|
script = ExtResource("1_1kj2b")
|
|
agent = NodePath("NavigationAgent")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
position = Vector2(0.5, 0)
|
|
texture = ExtResource("2_v8p70")
|
|
hframes = 5
|
|
vframes = 4
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_sedmr")
|
|
|
|
[node name="NavigationAgent" type="NavigationAgent2D" parent="."]
|
|
path_metadata_flags = 0
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
collision_layer = 64
|
|
collision_mask = 4
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
shape = SubResource("CircleShape2D_itvjj")
|
|
|
|
[connection signal="body_entered" from="Area2D" to="." method="_on_collision"]
|
|
[connection signal="body_exited" from="Area2D" to="." method="_of_collision"]
|