[gd_scene format=3 uid="uid://b23q2ppkeamyh"] [ext_resource type="Texture2D" uid="uid://b51p3mo2o7uxa" path="res://assets/enemies/slime/slime_purple.png" id="1_371uh"] [ext_resource type="Script" uid="uid://d215jspbbgtq6" path="res://scripts/slime.gd" id="1_p2gj0"] [sub_resource type="CircleShape2D" id="CircleShape2D_p2gj0"] [sub_resource type="AtlasTexture" id="AtlasTexture_n6pvg"] atlas = ExtResource("1_371uh") region = Rect2(0, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_pjw23"] atlas = ExtResource("1_371uh") region = Rect2(24, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_2npkn"] atlas = ExtResource("1_371uh") region = Rect2(48, 24, 24, 24) [sub_resource type="AtlasTexture" id="AtlasTexture_fd6lc"] atlas = ExtResource("1_371uh") region = Rect2(72, 24, 24, 24) [sub_resource type="SpriteFrames" id="SpriteFrames_gstla"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_n6pvg") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_pjw23") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_2npkn") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_fd6lc") }], "loop": true, "name": &"idle", "speed": 12.0 }] [node name="Slime" type="Area2D" unique_id=250926168 groups=["shootable"]] script = ExtResource("1_p2gj0") [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=588756743] shape = SubResource("CircleShape2D_p2gj0") debug_color = Color(0.83704245, 0.20573696, 0.8053471, 0.41960785) [node name="SlimeGraphic" type="AnimatedSprite2D" parent="." unique_id=69804785] texture_filter = 1 position = Vector2(0, -2) sprite_frames = SubResource("SpriteFrames_gstla") animation = &"idle" autoplay = "idle" frame = 1 frame_progress = 0.67487884 [node name="RightCast" type="RayCast2D" parent="." unique_id=18403424] target_position = Vector2(16, 0) [node name="RightDownCast" type="RayCast2D" parent="." unique_id=1848380842] position = Vector2(9, 0) target_position = Vector2(0, 16) [node name="LeftDownCast" type="RayCast2D" parent="." unique_id=858346924] position = Vector2(-10, 0) target_position = Vector2(0, 16) [node name="LeftCast" type="RayCast2D" parent="." unique_id=382510816] target_position = Vector2(-16, 0) [connection signal="body_entered" from="." to="." method="_on_body_entered"]