[gd_scene load_steps=9 format=3 uid="uid://c3blwnpwdol0a"]

[ext_resource type="Script" uid="uid://c2us5v211var4" path="res://scripts/slime.gd" id="1_idpgq"]
[ext_resource type="Texture2D" uid="uid://gm75hmen7j50" path="res://assets/graphics/enemies/slime_green.png" id="2_834r1"]

[sub_resource type="AtlasTexture" id="AtlasTexture_v06gt"]
atlas = ExtResource("2_834r1")
region = Rect2(0, 24, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_4iai6"]
atlas = ExtResource("2_834r1")
region = Rect2(24, 24, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_wyt6l"]
atlas = ExtResource("2_834r1")
region = Rect2(48, 24, 24, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_3lt2a"]
atlas = ExtResource("2_834r1")
region = Rect2(72, 24, 24, 24)

[sub_resource type="SpriteFrames" id="SpriteFrames_bhury"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_v06gt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4iai6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wyt6l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3lt2a")
}],
"loop": true,
"name": &"idle",
"speed": 12.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_7ddlr"]
size = Vector2(14, 15)

[node name="Area2D" type="Area2D"]
script = ExtResource("1_idpgq")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_bhury")
animation = &"idle"
autoplay = "idle"
frame = 3
frame_progress = 0.906364

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 4.5)
shape = SubResource("RectangleShape2D_7ddlr")

[node name="rightSideCast" type="RayCast2D" parent="."]
target_position = Vector2(13, 0)

[node name="leftSideCast" type="RayCast2D" parent="."]
target_position = Vector2(-13, 0)

[node name="rightDownCast" type="RayCast2D" parent="."]
position = Vector2(6, 0)
target_position = Vector2(0, 14)

[node name="leftDownCast" type="RayCast2D" parent="."]
position = Vector2(-6, 0)
target_position = Vector2(0, 14)

[connection signal="body_entered" from="." to="." method="_on_body_entered"]
