73 lines
2.3 KiB
Plaintext
73 lines
2.3 KiB
Plaintext
[gd_scene format=3 uid="uid://6f2xwlvvuq2i"]
|
|
|
|
[ext_resource type="Script" uid="uid://b03dn744r7c3f" path="res://Enemy/enemy.gd" id="1_332ps"]
|
|
[ext_resource type="Texture2D" uid="uid://cpwpc5hkcmrac" path="res://Idle Working.png" id="2_cl2k2"]
|
|
[ext_resource type="PackedScene" uid="uid://kf8tqdlm8c5t" path="res://addons/vision_cone_2d/vision_cone_2d_template.tscn" id="4_sekpt"]
|
|
|
|
[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")
|
|
}
|
|
|
|
[node name="Enemy" type="CharacterBody2D" unique_id=79507687]
|
|
collision_layer = 16
|
|
script = ExtResource("1_332ps")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=989742231]
|
|
visible = false
|
|
shape = SubResource("CapsuleShape2D_jurff")
|
|
|
|
[node name="Cat" type="Node2D" parent="." unique_id=1853796073]
|
|
|
|
[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_cl2k2")
|
|
hframes = 8
|
|
|
|
[node name="VisionCone2D" parent="." unique_id=2082655346 instance=ExtResource("4_sekpt")]
|
|
rotation = 1.5707964
|
|
angle_deg = 70
|
|
max_distance = 200.0
|
|
collision_layer_mask = 1
|
|
|
|
[node name="VisionConeArea" parent="VisionCone2D" index="1"]
|
|
collision_mask = 2
|