[gd_scene format=3 uid="uid://6d5378om23b8"] [ext_resource type="Texture2D" uid="uid://dm5aslppmk2hw" path="res://assets/graphics/enemies/slime_green.png" id="1_371uh"] [ext_resource type="Script" uid="uid://bltdu3mbpch5n" path="res://scripts/slime.gd" id="1_p2gj0"] [sub_resource type="AtlasTexture" id="AtlasTexture_p2gj0"] atlas = ExtResource("1_371uh") region = Rect2(0, 48, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_n6pvg"] atlas = ExtResource("1_371uh") region = Rect2(24, 48, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_pjw23"] atlas = ExtResource("1_371uh") region = Rect2(48, 48, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_2npkn"] atlas = ExtResource("1_371uh") region = Rect2(72, 48, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_fd6lc"] atlas = ExtResource("1_371uh") region = Rect2(0, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_gstla"] atlas = ExtResource("1_371uh") region = Rect2(24, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_v5wyi"] atlas = ExtResource("1_371uh") region = Rect2(48, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_0l8pv"] 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_p2gj0") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_n6pvg") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_pjw23") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_2npkn") }], "loop": 0, "name": &"attack", "speed": 12.0 }, { "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": 1, "name": &"run", "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"] radius = 8.0 [node name="Slime" type="Area2D" unique_id=1316034960] script = ExtResource("1_p2gj0") metadata/_edit_group_ = true [node name="SlimeGraphic" type="AnimatedSprite2D" parent="." unique_id=1496988530] texture_filter = 1 position = Vector2(0, -4) sprite_frames = SubResource("SpriteFrames_mvphy") animation = &"attack" autoplay = "spawn" [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=781957737] shape = SubResource("CircleShape2D_mvphy") [node name="RightCast" type="RayCast2D" parent="." unique_id=963570234] target_position = Vector2(14, 0) [node name="LeftCast" type="RayCast2D" parent="." unique_id=943025983] target_position = Vector2(-14, 0) [node name="RightDownCast" type="RayCast2D" parent="." unique_id=843232243] position = Vector2(7, 0) target_position = Vector2(0, 14) [node name="LeftDownCast" type="RayCast2D" parent="." unique_id=651691552] position = Vector2(-7, 0) target_position = Vector2(0, 14) [connection signal="body_entered" from="." to="." method="_on_body_entered"] [connection signal="animation_finished" from="SlimeGraphic" to="." method="_on_animation_finished"]