[gd_scene load_steps=41 format=3 uid="uid://go4yc8hfo1gq"] [ext_resource type="Script" path="res://scripts/CharacterBody2D.gd" id="1_x87yo"] [ext_resource type="Texture2D" uid="uid://c0iiaebonyhh0" path="res://graphics/Player Idle/Player Idle 48x48.png" id="2_hyqch"] [ext_resource type="Texture2D" uid="uid://bwnec1thq1btr" path="res://graphics/Player Death/Player Death 64x64.png" id="2_pndqh"] [ext_resource type="Texture2D" uid="uid://dytvp6158kit2" path="res://graphics/Player Hurt/Player Hurt 48x48.png" id="3_i8eco"] [ext_resource type="Texture2D" uid="uid://xgoqfqmvorcx" path="res://graphics/Player Jump/player jump 48x48.png" id="3_mp84c"] [ext_resource type="Texture2D" uid="uid://vn23qn3f0dvc" path="res://graphics/Player Run/player run 48x48.png" id="4_bok64"] [sub_resource type="AtlasTexture" id="AtlasTexture_dlawb"] atlas = ExtResource("2_pndqh") region = Rect2(0, 0, 43, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_6goxi"] atlas = ExtResource("2_pndqh") region = Rect2(43, 0, 43, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_w5uym"] atlas = ExtResource("2_pndqh") region = Rect2(86, 0, 43, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_4d8rt"] atlas = ExtResource("2_pndqh") region = Rect2(129, 0, 43, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_5boyf"] atlas = ExtResource("2_pndqh") region = Rect2(344, 0, 43, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_bhip8"] atlas = ExtResource("2_pndqh") region = Rect2(387, 0, 43, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_si011"] atlas = ExtResource("2_pndqh") region = Rect2(430, 0, 43, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_bifen"] atlas = ExtResource("3_i8eco") region = Rect2(0, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_3ofia"] atlas = ExtResource("3_i8eco") region = Rect2(48, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_3fw1l"] atlas = ExtResource("3_i8eco") region = Rect2(96, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_8s641"] atlas = ExtResource("3_i8eco") region = Rect2(144, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_htcu2"] atlas = ExtResource("2_hyqch") region = Rect2(0, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_ontj7"] atlas = ExtResource("2_hyqch") region = Rect2(48, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_gv7tn"] atlas = ExtResource("2_hyqch") region = Rect2(96, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_f4ltu"] atlas = ExtResource("2_hyqch") region = Rect2(144, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_m44rj"] atlas = ExtResource("2_hyqch") region = Rect2(192, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_mvrul"] atlas = ExtResource("2_hyqch") region = Rect2(240, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_cq1wt"] atlas = ExtResource("2_hyqch") region = Rect2(288, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_5mc5v"] atlas = ExtResource("2_hyqch") region = Rect2(336, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_yclfw"] atlas = ExtResource("2_hyqch") region = Rect2(384, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_rgyuc"] atlas = ExtResource("2_hyqch") region = Rect2(432, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_pbehb"] atlas = ExtResource("3_mp84c") region = Rect2(0, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_o4ud8"] atlas = ExtResource("3_mp84c") region = Rect2(48, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_ivggc"] atlas = ExtResource("3_mp84c") region = Rect2(96, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_d6cbg"] atlas = ExtResource("4_bok64") region = Rect2(0, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_cyg7w"] atlas = ExtResource("4_bok64") region = Rect2(48, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_lejph"] atlas = ExtResource("4_bok64") region = Rect2(96, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_cu62b"] atlas = ExtResource("4_bok64") region = Rect2(144, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_vio7d"] atlas = ExtResource("4_bok64") region = Rect2(192, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_t6raw"] atlas = ExtResource("4_bok64") region = Rect2(240, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_srqae"] atlas = ExtResource("4_bok64") region = Rect2(288, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_dfgfp"] atlas = ExtResource("4_bok64") region = Rect2(336, 0, 48, 48) [sub_resource type="SpriteFrames" id="SpriteFrames_a6t6h"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_dlawb") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_6goxi") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_w5uym") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_4d8rt") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_5boyf") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_bhip8") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_si011") }], "loop": false, "name": &"death", "speed": 15.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_bifen") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_3ofia") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_3fw1l") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_8s641") }], "loop": false, "name": &"hurt", "speed": 15.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_htcu2") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ontj7") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_gv7tn") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_f4ltu") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_m44rj") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_mvrul") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_cq1wt") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_5mc5v") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_yclfw") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_rgyuc") }], "loop": true, "name": &"idle", "speed": 15.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_pbehb") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_o4ud8") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ivggc") }], "loop": false, "name": &"jump", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_d6cbg") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_cyg7w") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_lejph") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_cu62b") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_vio7d") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_t6raw") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_srqae") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_dfgfp") }], "loop": true, "name": &"run", "speed": 15.0 }] [sub_resource type="CircleShape2D" id="CircleShape2D_ubfw4"] radius = 13.0384 [node name="CharacterBody2D" type="CharacterBody2D"] position = Vector2(-1, 0) script = ExtResource("1_x87yo") JUMP_VELOCITY = -500.0 metadata/_edit_group_ = true [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] texture_filter = 1 sprite_frames = SubResource("SpriteFrames_a6t6h") animation = &"hurt" autoplay = "idle" frame = 3 frame_progress = 1.0 [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, 3) shape = SubResource("CircleShape2D_ubfw4") [node name="RightRay" type="RayCast2D" parent="."] position = Vector2(0, 3) target_position = Vector2(29, 0) [node name="LeftRay" type="RayCast2D" parent="."] position = Vector2(0, 3) target_position = Vector2(-29, 0) [node name="MarkerRight" type="Node2D" parent="."] position = Vector2(16, -6) [node name="MarkerLeft" type="Node2D" parent="."] position = Vector2(-16, -6) [connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_finished"] [connection signal="animation_looped" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_looped"]