[gd_scene load_steps=9 format=3 uid="uid://dlcwgmi2phvf0"] [ext_resource type="Texture2D" uid="uid://ck04qn64ivj65" path="res://assets/graphics/enemies/slime_purple.png" id="1_371uh"] [ext_resource type="Script" uid="uid://dh168hjmye0c2" path="res://scripts/slime.gd" id="1_p2gj0"] [sub_resource type="CircleShape2D" id="CircleShape2D_srws1"] radius = 8.0 [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="SpriteFrames" id="SpriteFrames_fd6lc"] 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": true, "name": &"default", "speed": 12.0 }] [node name="Slime" type="Area2D"] script = ExtResource("1_p2gj0") [node name="SlimeCollision" type="CollisionShape2D" parent="."] shape = SubResource("CircleShape2D_srws1") debug_color = Color(0.965557, 2.31028e-06, 0.485965, 0.42) [node name="SlimeSprite" type="AnimatedSprite2D" parent="."] texture_filter = 1 position = Vector2(0, -5) sprite_frames = SubResource("SpriteFrames_fd6lc") autoplay = "default" frame_progress = 0.0978275 [node name="LeftCast" type="RayCast2D" parent="."] target_position = Vector2(-13, 0) [node name="LeftCliffCast" type="RayCast2D" parent="."] target_position = Vector2(-16, 13) [node name="RightCliffCast" type="RayCast2D" parent="."] target_position = Vector2(15, 12) [node name="RightCast" type="RayCast2D" parent="."] target_position = Vector2(13, 0) [connection signal="body_entered" from="." to="." method="_on_body_entered"]