120 lines
3.5 KiB
Plaintext
120 lines
3.5 KiB
Plaintext
[gd_scene format=3 uid="uid://dn23032r50u6a"]
|
|
|
|
[ext_resource type="Script" uid="uid://b03dn744r7c3f" path="res://Enemy/enemy.gd" id="1_1lhtl"]
|
|
[ext_resource type="Texture2D" uid="uid://d1ru5si1ev3nq" path="res://Enemy/cat_images/IDLE.png" id="2_y07qa"]
|
|
[ext_resource type="Texture2D" uid="uid://r3oxbvx0b4k4" path="res://Enemy/chicken.png" id="3_fgfop"]
|
|
[ext_resource type="PackedScene" uid="uid://kf8tqdlm8c5t" path="res://addons/vision_cone_2d/vision_cone_2d_template.tscn" id="4_pkl84"]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_jurff"]
|
|
|
|
[sub_resource type="Animation" id="Animation_gkxbg"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Cat/Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_5y2so"]
|
|
resource_name = "idle_sit"
|
|
length = 1.2
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Cat/Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.15, 0.3, 0.45, 0.6, 0.75, 0.9, 1.05),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [0, 1, 2, 3, 4, 5, 6, 7]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_xnlim"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_gkxbg"),
|
|
&"idle_sit": SubResource("Animation_5y2so")
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_tmmbl"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = false
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_borso"]
|
|
resource_name = "turtle_idle"
|
|
length = 0.9
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.3, 0.6),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 1,
|
|
"values": [6, 7, 8]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_63oeu"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_tmmbl"),
|
|
&"turtle_idle": SubResource("Animation_borso")
|
|
}
|
|
|
|
[node name="Enemy" type="CharacterBody2D" unique_id=79507687]
|
|
script = ExtResource("1_1lhtl")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=989742231]
|
|
visible = false
|
|
shape = SubResource("CapsuleShape2D_jurff")
|
|
|
|
[node name="Cat" type="Node2D" parent="." unique_id=1853796073]
|
|
visible = false
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="Cat" unique_id=1002271378]
|
|
root_node = NodePath("../..")
|
|
libraries/ = SubResource("AnimationLibrary_xnlim")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Cat" unique_id=2017302220]
|
|
texture = ExtResource("2_y07qa")
|
|
hframes = 8
|
|
|
|
[node name="Chicken" type="Node2D" parent="." unique_id=1952362392]
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Chicken" unique_id=1780607003]
|
|
texture = ExtResource("3_fgfop")
|
|
hframes = 3
|
|
vframes = 4
|
|
frame = 4
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="Chicken" unique_id=338439838]
|
|
libraries/ = SubResource("AnimationLibrary_63oeu")
|
|
|
|
[node name="VisionCone2D" parent="." unique_id=2082655346 instance=ExtResource("4_pkl84")]
|
|
position = Vector2(8, -5)
|
|
rotation = -1.5707964
|
|
angle_deg = 60
|
|
max_distance = 200.0
|