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

[ext_resource type="Script" path="res://scripts/badguy.gd" id="1_ees8e"]
[ext_resource type="Texture2D" uid="uid://c4g3ypigewuuu" path="res://graphics/slime_green.png" id="2_le1an"]

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

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

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

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

[sub_resource type="SpriteFrames" id="SpriteFrames_oohu0"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_aiaao")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qiek8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c6suc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wxol7")
}],
"loop": true,
"name": &"default",
"speed": 12.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_jipcy"]
size = Vector2(17, 15)

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

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_oohu0")
autoplay = "default"

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

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

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-0.5, 4.5)
shape = SubResource("RectangleShape2D_jipcy")

[node name="CastFloorRight" type="RayCast2D" parent="."]
position = Vector2(10, 1)
target_position = Vector2(0, 14)

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

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