[gd_scene format=3 uid="uid://be116t1whg2bm"] [ext_resource type="Texture2D" uid="uid://d1ru5si1ev3nq" path="res://Enemy/cat_images/IDLE.png" id="1_2kakx"] [ext_resource type="Script" uid="uid://b03dn744r7c3f" path="res://Enemy/enemy.gd" id="1_5y2so"] [ext_resource type="Texture2D" uid="uid://r3oxbvx0b4k4" path="res://Enemy/chicken.png" id="2_jurff"] [ext_resource type="Texture2D" uid="uid://d3jtiig2u86r7" path="res://Enemy/cat_images/WALK.png" id="4_walk"] [ext_resource type="PackedScene" uid="uid://kf8tqdlm8c5t" path="res://addons/vision_cone_2d/vision_cone_2d_template.tscn" id="3_gkxbg"] [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] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Cat/Sprite2D:texture") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [ExtResource("1_2kakx")] } tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("Cat/Sprite2D:hframes") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [8] } [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] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Cat/Sprite2D:texture") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [ExtResource("1_2kakx")] } tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("Cat/Sprite2D:hframes") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [8] } [sub_resource type="Animation" id="Animation_walk1"] resource_name = "walk" length = 1.2 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Cat/Sprite2D:texture") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [ExtResource("4_walk")] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Cat/Sprite2D:hframes") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [12] } tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("Cat/Sprite2D:frame") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), "update": 1, "values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_xnlim"] _data = { &"RESET": SubResource("Animation_gkxbg"), &"idle_sit": SubResource("Animation_5y2so"), &"walk": SubResource("Animation_walk1") } [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] collision_layer = 16 script = ExtResource("1_5y2so") [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("1_2kakx") hframes = 8 [node name="Chicken" type="Node2D" parent="." unique_id=1952362392] visible = false [node name="Sprite2D" type="Sprite2D" parent="Chicken" unique_id=1780607003] texture = ExtResource("2_jurff") hframes = 3 vframes = 4 [node name="AnimationPlayer" type="AnimationPlayer" parent="Chicken" unique_id=338439838] libraries/ = SubResource("AnimationLibrary_63oeu") [node name="VisionCone2D" parent="." unique_id=2082655346 instance=ExtResource("3_gkxbg")] rotation = 1.5707964 angle_deg = 70 max_distance = 200.0 collision_layer_mask = 1 [node name="VisionConeArea" parent="VisionCone2D" index="1"] collision_mask = 2