This repository has been archived on 2024-07-02. You can view files and clone it, but cannot push or open issues or pull requests.
HoppyEaster/Prefabs/bunny.tscn

38 lines
1.3 KiB
Text
Raw Normal View History

2023-04-09 14:39:45 +00:00
[gd_scene load_steps=5 format=3 uid="uid://cpl4tllohhyel"]
[ext_resource type="Script" path="res://Scripts/EntitySystem/Bunny.gd" id="1_1kj2b"]
2023-04-08 20:27:38 +00:00
[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"]
2023-04-09 14:39:45 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_itvjj"]
radius = 14.0
[node name="Bunny" type="CharacterBody2D" node_paths=PackedStringArray("agent")]
collision_layer = 4
2023-04-09 14:39:45 +00:00
collision_mask = 15
script = ExtResource("1_1kj2b")
2023-04-09 14:39:45 +00:00
agent = NodePath("NavigationAgent")
[node name="Sprite2D" type="Sprite2D" parent="."]
2023-04-09 14:39:45 +00:00
position = Vector2(0.5, 0)
2023-04-08 20:27:38 +00:00
texture = ExtResource("2_v8p70")
hframes = 5
vframes = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_sedmr")
2023-04-09 14:39:45 +00:00
[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"]