[gd_scene format=3 uid="uid://doyskrgo8v71d"]

[ext_resource type="Script" uid="uid://hydqcpmmn0pu" path="res://snail.gd" id="1_insh8"]
[ext_resource type="Texture2D" uid="uid://6gtaxba6kn6" path="res://assets/images/Snail/Hit (38x24).png" id="1_kwcx3"]
[ext_resource type="Texture2D" uid="uid://cix1l1ksp8og6" path="res://assets/images/Snail/Walk (38x24).png" id="2_insh8"]
[ext_resource type="AudioStream" uid="uid://7pkqsi6fv8hb" path="res://assets/sounds/squish.mp3" id="4_4w31b"]

[sub_resource type="AtlasTexture" id="AtlasTexture_4w31b"]
atlas = ExtResource("1_kwcx3")
region = Rect2(0, 0, 38, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_58xrm"]
atlas = ExtResource("1_kwcx3")
region = Rect2(38, 0, 38, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_mr66v"]
atlas = ExtResource("1_kwcx3")
region = Rect2(76, 0, 38, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_fc0et"]
atlas = ExtResource("1_kwcx3")
region = Rect2(114, 0, 38, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_k75rl"]
atlas = ExtResource("1_kwcx3")
region = Rect2(152, 0, 38, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_1henu"]
atlas = ExtResource("2_insh8")
region = Rect2(0, 0, 38, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_kyqmk"]
atlas = ExtResource("2_insh8")
region = Rect2(38, 0, 38, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_xnlcv"]
atlas = ExtResource("2_insh8")
region = Rect2(76, 0, 38, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_cumd5"]
atlas = ExtResource("2_insh8")
region = Rect2(114, 0, 38, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_gkwkn"]
atlas = ExtResource("2_insh8")
region = Rect2(152, 0, 38, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_6jqhp"]
atlas = ExtResource("2_insh8")
region = Rect2(190, 0, 38, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_7ottm"]
atlas = ExtResource("2_insh8")
region = Rect2(228, 0, 38, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_8dhav"]
atlas = ExtResource("2_insh8")
region = Rect2(266, 0, 38, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_hal53"]
atlas = ExtResource("2_insh8")
region = Rect2(304, 0, 38, 24)

[sub_resource type="AtlasTexture" id="AtlasTexture_277oh"]
atlas = ExtResource("2_insh8")
region = Rect2(342, 0, 38, 24)

[sub_resource type="SpriteFrames" id="SpriteFrames_esbs8"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_4w31b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_58xrm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mr66v")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fc0et")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_k75rl")
}],
"loop": true,
"name": &"dying",
"speed": 20.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_1henu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kyqmk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xnlcv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cumd5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gkwkn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6jqhp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7ottm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8dhav")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hal53")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_277oh")
}],
"loop": true,
"name": &"walking",
"speed": 20.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_r7se8"]
size = Vector2(1, 9)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_insh8"]
size = Vector2(27, 4)

[node name="Snail" type="Node2D" unique_id=718794216]
script = ExtResource("1_insh8")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=50871182]
texture_filter = 1
position = Vector2(-2, 0)
sprite_frames = SubResource("SpriteFrames_esbs8")
animation = &"walking"
autoplay = "walking"
frame_progress = 0.12121709

[node name="Area2D" type="Area2D" parent="AnimatedSprite2D" unique_id=13797364]
position = Vector2(2, 0)

[node name="Front" type="CollisionShape2D" parent="AnimatedSprite2D/Area2D" unique_id=1763263041]
position = Vector2(-17, 5)
shape = SubResource("RectangleShape2D_r7se8")

[node name="Back" type="CollisionShape2D" parent="AnimatedSprite2D/Area2D" unique_id=1521992116]
position = Vector2(15, 5)
shape = SubResource("RectangleShape2D_r7se8")

[node name="DeathTimer" type="Timer" parent="." unique_id=479476094]
one_shot = true

[node name="Area2D" type="Area2D" parent="." unique_id=610273950]

[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=711905406]
position = Vector2(-1.5, -4)
shape = SubResource("RectangleShape2D_insh8")

[node name="Squish" type="AudioStreamPlayer2D" parent="." unique_id=1323643234]
stream = ExtResource("4_4w31b")
volume_db = 1.0

[connection signal="body_entered" from="AnimatedSprite2D/Area2D" to="." method="_on_body_entered"]
[connection signal="timeout" from="DeathTimer" to="." method="_on_death_timer_timeout"]
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered_for_death"]
