[gd_scene load_steps=44 format=3 uid="uid://cjvyslsoa7olc"]

[ext_resource type="Script" uid="uid://b5eit0edgwhq0" path="res://scripts/player.gd" id="1_ffdhb"]
[ext_resource type="Texture2D" uid="uid://c8seclaqrgq6x" path="res://assets/graphics/player/hurt/Player Hurt 48x48.png" id="2_3u4bg"]
[ext_resource type="Texture2D" uid="uid://d6cdeej48ryk" path="res://assets/graphics/player/idle/Player Idle 48x48.png" id="2_ekybh"]
[ext_resource type="Texture2D" uid="uid://c4lmbns6bx0e1" path="res://assets/graphics/player/death/Player Death 64x64 (2).png" id="2_g6kb3"]
[ext_resource type="Texture2D" uid="uid://bo4lwotnk3cs" path="res://assets/graphics/player/jump/player jump 48x48.png" id="3_fab18"]
[ext_resource type="Texture2D" uid="uid://dny0tvbhrt1jh" path="res://assets/graphics/player/run/player run 48x48.png" id="3_q7el6"]

[sub_resource type="CircleShape2D" id="CircleShape2D_q23dn"]

[sub_resource type="AtlasTexture" id="AtlasTexture_lfx06"]
atlas = ExtResource("2_g6kb3")
region = Rect2(0, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_00rne"]
atlas = ExtResource("2_g6kb3")
region = Rect2(48, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_y5l30"]
atlas = ExtResource("2_g6kb3")
region = Rect2(96, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_aj0cj"]
atlas = ExtResource("2_g6kb3")
region = Rect2(144, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_1fkb1"]
atlas = ExtResource("2_g6kb3")
region = Rect2(192, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_yq6na"]
atlas = ExtResource("2_g6kb3")
region = Rect2(240, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_0njwm"]
atlas = ExtResource("2_g6kb3")
region = Rect2(288, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_yxrd7"]
atlas = ExtResource("2_g6kb3")
region = Rect2(336, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_aggyg"]
atlas = ExtResource("2_g6kb3")
region = Rect2(384, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_v8aph"]
atlas = ExtResource("2_g6kb3")
region = Rect2(432, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_40d3p"]
atlas = ExtResource("2_3u4bg")
region = Rect2(0, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_1oa45"]
atlas = ExtResource("2_3u4bg")
region = Rect2(48, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_tcuwl"]
atlas = ExtResource("2_3u4bg")
region = Rect2(96, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_26j0m"]
atlas = ExtResource("2_3u4bg")
region = Rect2(144, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_3ufnv"]
atlas = ExtResource("2_ekybh")
region = Rect2(0, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_y70bw"]
atlas = ExtResource("2_ekybh")
region = Rect2(48, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_tl2bv"]
atlas = ExtResource("2_ekybh")
region = Rect2(96, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_tkkjs"]
atlas = ExtResource("2_ekybh")
region = Rect2(144, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_0fgmq"]
atlas = ExtResource("2_ekybh")
region = Rect2(192, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_vjujd"]
atlas = ExtResource("2_ekybh")
region = Rect2(240, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_307af"]
atlas = ExtResource("2_ekybh")
region = Rect2(288, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_nn3sj"]
atlas = ExtResource("2_ekybh")
region = Rect2(336, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_coouw"]
atlas = ExtResource("2_ekybh")
region = Rect2(384, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_w02ps"]
atlas = ExtResource("2_ekybh")
region = Rect2(432, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_u2bek"]
atlas = ExtResource("3_fab18")
region = Rect2(0, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_wly4a"]
atlas = ExtResource("3_fab18")
region = Rect2(48, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_p6fm4"]
atlas = ExtResource("3_fab18")
region = Rect2(96, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_q2tlv"]
atlas = ExtResource("3_q7el6")
region = Rect2(0, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_a5a0q"]
atlas = ExtResource("3_q7el6")
region = Rect2(48, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_qajev"]
atlas = ExtResource("3_q7el6")
region = Rect2(96, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_pkvyv"]
atlas = ExtResource("3_q7el6")
region = Rect2(144, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_d0umq"]
atlas = ExtResource("3_q7el6")
region = Rect2(192, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_cso7h"]
atlas = ExtResource("3_q7el6")
region = Rect2(240, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_08m43"]
atlas = ExtResource("3_q7el6")
region = Rect2(288, 0, 48, 48)

[sub_resource type="AtlasTexture" id="AtlasTexture_wuxnh"]
atlas = ExtResource("3_q7el6")
region = Rect2(336, 0, 48, 48)

[sub_resource type="SpriteFrames" id="SpriteFrames_ok1w6"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_lfx06")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_00rne")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y5l30")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_aj0cj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1fkb1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yq6na")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0njwm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yxrd7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_aggyg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v8aph")
}],
"loop": false,
"name": &"death",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_40d3p")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1oa45")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tcuwl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_26j0m")
}],
"loop": false,
"name": &"hurt",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_3ufnv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y70bw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tl2bv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tkkjs")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0fgmq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vjujd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_307af")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nn3sj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_coouw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_w02ps")
}],
"loop": true,
"name": &"idle",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_u2bek")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wly4a")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_p6fm4")
}],
"loop": false,
"name": &"jump",
"speed": 9.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_q2tlv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_a5a0q")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qajev")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pkvyv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_d0umq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cso7h")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_08m43")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wuxnh")
}],
"loop": true,
"name": &"run",
"speed": 12.0
}]

[node name="CharacterBody2D" type="CharacterBody2D"]
script = ExtResource("1_ffdhb")
metadata/_edit_group_ = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -1)
shape = SubResource("CircleShape2D_q23dn")
debug_color = Color(0.273614, 0.618219, 0.385754, 0.42)

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

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

[node name="rightTarget" type="Node2D" parent="."]
position = Vector2(18, 0)

[node name="leftTarget" type="Node2D" parent="."]
position = Vector2(-19, 0)

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
position = Vector2(0, -7)
sprite_frames = SubResource("SpriteFrames_ok1w6")
animation = &"death"
autoplay = "hurt"

[node name="Camera2D" type="Camera2D" parent="."]
offset = Vector2(0, -30)

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]

[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]
