[gd_scene load_steps=37 format=3 uid="uid://sbr727jduiqw"] [ext_resource type="Script" path="res://scripts/enemies/enemy.gd" id="1_4wu2v"] [ext_resource type="Texture2D" uid="uid://bfyws0srbawxx" path="res://assets/spritesheets/enemies/demon-fungus.png" id="2_jkw1p"] [sub_resource type="AtlasTexture" id="AtlasTexture_dt5pf"] atlas = ExtResource("2_jkw1p") region = Rect2(1536, 2048, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_w053b"] atlas = ExtResource("2_jkw1p") region = Rect2(0, 2560, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_jgmu6"] atlas = ExtResource("2_jkw1p") region = Rect2(512, 2560, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_qjv30"] atlas = ExtResource("2_jkw1p") region = Rect2(1024, 2560, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_i26da"] atlas = ExtResource("2_jkw1p") region = Rect2(0, 3584, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_bfh4y"] atlas = ExtResource("2_jkw1p") region = Rect2(512, 3584, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_mnffh"] atlas = ExtResource("2_jkw1p") region = Rect2(1024, 3584, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_wbr8g"] atlas = ExtResource("2_jkw1p") region = Rect2(1536, 3584, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_pq10w"] atlas = ExtResource("2_jkw1p") region = Rect2(1536, 0, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_ra4kd"] atlas = ExtResource("2_jkw1p") region = Rect2(0, 512, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_vppnh"] atlas = ExtResource("2_jkw1p") region = Rect2(512, 512, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_mx1o8"] atlas = ExtResource("2_jkw1p") region = Rect2(1024, 512, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_nrtl5"] atlas = ExtResource("2_jkw1p") region = Rect2(0, 1536, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_f5fdb"] atlas = ExtResource("2_jkw1p") region = Rect2(512, 1536, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_qmj20"] atlas = ExtResource("2_jkw1p") region = Rect2(1024, 1536, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_gpwgv"] atlas = ExtResource("2_jkw1p") region = Rect2(1536, 1536, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_qlghv"] atlas = ExtResource("2_jkw1p") region = Rect2(1536, 4096, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_t7dqq"] atlas = ExtResource("2_jkw1p") region = Rect2(0, 4608, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_l7061"] atlas = ExtResource("2_jkw1p") region = Rect2(512, 4608, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_qcnku"] atlas = ExtResource("2_jkw1p") region = Rect2(1024, 4608, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_hccyt"] atlas = ExtResource("2_jkw1p") region = Rect2(0, 5632, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_2b72c"] atlas = ExtResource("2_jkw1p") region = Rect2(512, 5632, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_6f40i"] atlas = ExtResource("2_jkw1p") region = Rect2(1024, 5632, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_jn1cs"] atlas = ExtResource("2_jkw1p") region = Rect2(1536, 5632, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_ibux8"] atlas = ExtResource("2_jkw1p") region = Rect2(1536, 6144, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_daege"] atlas = ExtResource("2_jkw1p") region = Rect2(0, 6656, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_gv5sd"] atlas = ExtResource("2_jkw1p") region = Rect2(512, 6656, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_x8ovq"] atlas = ExtResource("2_jkw1p") region = Rect2(1024, 6656, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_1riw6"] atlas = ExtResource("2_jkw1p") region = Rect2(0, 7680, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_3u45b"] atlas = ExtResource("2_jkw1p") region = Rect2(512, 7680, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_10r1v"] atlas = ExtResource("2_jkw1p") region = Rect2(1024, 7680, 512, 512) [sub_resource type="AtlasTexture" id="AtlasTexture_lwnf4"] atlas = ExtResource("2_jkw1p") region = Rect2(1536, 7680, 512, 512) [sub_resource type="SpriteFrames" id="SpriteFrames_5yy3x"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_dt5pf") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_w053b") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_jgmu6") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_qjv30") }], "loop": true, "name": &"back", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_i26da") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_bfh4y") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_mnffh") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_wbr8g") }], "loop": false, "name": &"back_dead", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_pq10w") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ra4kd") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_vppnh") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_mx1o8") }], "loop": true, "name": &"front", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_nrtl5") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_f5fdb") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_qmj20") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_gpwgv") }], "loop": false, "name": &"front_dead", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_qlghv") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_t7dqq") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_l7061") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_qcnku") }], "loop": true, "name": &"left", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_hccyt") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_2b72c") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_6f40i") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_jn1cs") }], "loop": false, "name": &"left_dead", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_ibux8") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_daege") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_gv5sd") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_x8ovq") }], "loop": true, "name": &"right", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_1riw6") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_3u45b") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_10r1v") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_lwnf4") }], "loop": false, "name": &"right_dead", "speed": 5.0 }] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_5hy1j"] radius = 21.0065 height = 42.013 [node name="Enemy" type="PathFollow2D"] rotation = 0.00699289 rotates = false loop = false script = ExtResource("1_4wu2v") [node name="EnemyBody" type="CharacterBody2D" parent="." groups=["Enemy"]] [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="EnemyBody"] position = Vector2(9.15527e-05, 0.00012207) scale = Vector2(0.09, 0.089) sprite_frames = SubResource("SpriteFrames_5yy3x") animation = &"back_dead" autoplay = "right" [node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyBody"] position = Vector2(-0.992983, 1.00696) shape = SubResource("CapsuleShape2D_5hy1j") [node name="HealthBar" type="ProgressBar" parent="EnemyBody"] modulate = Color(0.431373, 0.815686, 0, 1) offset_left = -15.1814 offset_top = -25.8945 offset_right = 86.8186 offset_bottom = 1.10553 scale = Vector2(0.3, 0.3) show_percentage = false [node name="SlowTimer" type="Timer" parent="EnemyBody"] one_shot = true [node name="DeadTimer" type="Timer" parent="EnemyBody"] wait_time = 3.0 one_shot = true [connection signal="timeout" from="EnemyBody/SlowTimer" to="." method="_on_slow_timer_timeout"] [connection signal="timeout" from="EnemyBody/DeadTimer" to="." method="_on_dead_timer_timeout"]