[gd_scene format=3 uid="uid://6d5378om23b8"] [ext_resource type="Texture2D" uid="uid://0p6a5anngp31" path="res://assets/enemies/slime/slime_purple.png" id="1_371uh"] [ext_resource type="Script" uid="uid://c83er3jdb7i8d" path="res://scripts/slime.gd" id="1_p2gj0"] [sub_resource type="AtlasTexture" id="AtlasTexture_fd6lc"] atlas = ExtResource("1_371uh") region = Rect2(0, 48, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_gstla"] atlas = ExtResource("1_371uh") region = Rect2(24, 48, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_v5wyi"] atlas = ExtResource("1_371uh") region = Rect2(48, 48, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_0l8pv"] atlas = ExtResource("1_371uh") region = Rect2(72, 48, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_p2gj0"] atlas = ExtResource("1_371uh") region = Rect2(0, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_n6pvg"] atlas = ExtResource("1_371uh") region = Rect2(24, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_pjw23"] atlas = ExtResource("1_371uh") region = Rect2(48, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_2npkn"] atlas = ExtResource("1_371uh") region = Rect2(72, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_vnioy"] atlas = ExtResource("1_371uh") region = Rect2(0, 0, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_2xjuo"] atlas = ExtResource("1_371uh") region = Rect2(24, 0, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_a02ik"] atlas = ExtResource("1_371uh") region = Rect2(48, 0, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_pu8ps"] atlas = ExtResource("1_371uh") region = Rect2(72, 0, 24, 24) [sub_resource type="SpriteFrames" id="SpriteFrames_mvphy"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_fd6lc") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_gstla") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_v5wyi") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_0l8pv") }], "loop": 0, "name": &"attack", "speed": 12.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_p2gj0") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_n6pvg") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_pjw23") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_2npkn") }], "loop": 1, "name": &"idle", "speed": 12.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_vnioy") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_2xjuo") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_a02ik") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_pu8ps") }], "loop": 0, "name": &"spawn", "speed": 12.0 }] [sub_resource type="CircleShape2D" id="CircleShape2D_mvphy"] [node name="Slime" type="Area2D" unique_id=378236608] script = ExtResource("1_p2gj0") [node name="EnemyGraphic" type="AnimatedSprite2D" parent="." unique_id=20748571] texture_filter = 1 position = Vector2(0, -2) sprite_frames = SubResource("SpriteFrames_mvphy") animation = &"spawn" [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1414160547] shape = SubResource("CircleShape2D_mvphy") [node name="RightCast" type="RayCast2D" parent="." unique_id=2017385524] target_position = Vector2(16, 0) [node name="RightDownCast" type="RayCast2D" parent="." unique_id=1117203903] position = Vector2(8, 0) target_position = Vector2(0, 13) [node name="LeftDownCast" type="RayCast2D" parent="." unique_id=1523126749] position = Vector2(-8, 0) target_position = Vector2(0, 13) [node name="LeftCast" type="RayCast2D" parent="." unique_id=224811798] target_position = Vector2(-16, 0) [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="animation_finished" from="EnemyGraphic" to="." method="_on_animation_finished"]