[gd_scene load_steps=29 format=3 uid="uid://enj7slqj7o2o"] [ext_resource type="Texture2D" uid="uid://c8v7mt7kbv7k5" path="res://objects/npcs/zombie.png" id="1_8psf6"] [ext_resource type="Script" uid="uid://bw8t7n771m0b4" path="res://objects/npcs/zombie.gd" id="1_qml1x"] [ext_resource type="Script" uid="uid://bsveyr6o3li86" path="res://objects/npcs/zombie_sprite.gd" id="3_8bxsl"] [ext_resource type="Script" uid="uid://e6q7q0ljb34u" path="res://scripts/state_collision.gd" id="4_8svax"] [sub_resource type="AtlasTexture" id="AtlasTexture_qml1x"] atlas = ExtResource("1_8psf6") region = Rect2(0, 122, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_8bxsl"] atlas = ExtResource("1_8psf6") region = Rect2(52, 122, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_nyp6s"] atlas = ExtResource("1_8psf6") region = Rect2(104, 122, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_knvin"] atlas = ExtResource("1_8psf6") region = Rect2(156, 122, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_0k1nj"] atlas = ExtResource("1_8psf6") region = Rect2(208, 122, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_4k8tf"] atlas = ExtResource("1_8psf6") region = Rect2(260, 122, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_fljd2"] atlas = ExtResource("1_8psf6") region = Rect2(312, 122, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_hci6t"] atlas = ExtResource("1_8psf6") region = Rect2(364, 122, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_apr15"] atlas = ExtResource("1_8psf6") region = Rect2(416, 122, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_gigwc"] atlas = ExtResource("1_8psf6") region = Rect2(0, 0, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_5qsks"] atlas = ExtResource("1_8psf6") region = Rect2(52, 0, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_ys0de"] atlas = ExtResource("1_8psf6") region = Rect2(0, 183, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_kni6o"] atlas = ExtResource("1_8psf6") region = Rect2(52, 183, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_8lesc"] atlas = ExtResource("1_8psf6") region = Rect2(104, 183, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_ai73t"] atlas = ExtResource("1_8psf6") region = Rect2(156, 183, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_hmrhp"] atlas = ExtResource("1_8psf6") region = Rect2(208, 183, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_reymy"] atlas = ExtResource("1_8psf6") region = Rect2(260, 183, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_wifnu"] atlas = ExtResource("1_8psf6") region = Rect2(0, 61, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_frsw6"] atlas = ExtResource("1_8psf6") region = Rect2(52, 61, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_8n4lj"] atlas = ExtResource("1_8psf6") region = Rect2(104, 61, 52, 61) [sub_resource type="AtlasTexture" id="AtlasTexture_sqw4r"] atlas = ExtResource("1_8psf6") region = Rect2(156, 61, 52, 61) [sub_resource type="SpriteFrames" id="SpriteFrames_4jgel"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_qml1x") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_8bxsl") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_nyp6s") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_knvin") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_0k1nj") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_4k8tf") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_fljd2") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_hci6t") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_apr15") }], "loop": false, "name": &"attack", "speed": 12.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_gigwc") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_5qsks") }], "loop": true, "name": &"default", "speed": 3.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_ys0de") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_kni6o") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_8lesc") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ai73t") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_hmrhp") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_reymy") }], "loop": false, "name": &"die", "speed": 24.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_wifnu") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_frsw6") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_8n4lj") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_sqw4r") }], "loop": true, "name": &"walk", "speed": 6.0 }] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_8psf6"] radius = 6.0 height = 24.0 [sub_resource type="RectangleShape2D" id="RectangleShape2D_8bxsl"] size = Vector2(8, 13) [node name="Zombie" type="CharacterBody2D"] script = ExtResource("1_qml1x") [node name="Sprite" type="AnimatedSprite2D" parent="."] position = Vector2(0, -10.5) sprite_frames = SubResource("SpriteFrames_4jgel") animation = &"attack" frame = 5 script = ExtResource("3_8bxsl") [node name="Collision" type="CollisionShape2D" parent="."] position = Vector2(0, -12) shape = SubResource("CapsuleShape2D_8psf6") [node name="Area2D" type="Area2D" parent="."] [node name="CollisionAttack" type="CollisionShape2D" parent="Area2D"] position = Vector2(10, -11.5) shape = SubResource("RectangleShape2D_8bxsl") debug_color = Color(0.9942227, 0, 0.23271917, 0.41960785) [node name="CollisionState2D" type="CollisionShape2D" parent="Area2D"] script = ExtResource("4_8svax") metadata/_custom_type_script = "uid://e6q7q0ljb34u"