[gd_scene load_steps=44 format=3 uid="uid://c1cuiluq1fcpk"] [ext_resource type="Script" path="res://scripts/player.gd" id="1_s1kdl"] [ext_resource type="Texture2D" uid="uid://dmatixjfu6l4x" path="res://assets/graphics/player/death/Player Death 64x64.png" id="2_cy83k"] [ext_resource type="Texture2D" uid="uid://cv2rxkxb3qt8d" path="res://assets/graphics/player/idle/Player Idle 48x48.png" id="2_h20by"] [ext_resource type="Texture2D" uid="uid://cnya66cp8q1jw" path="res://assets/graphics/player/jump/player jump 48x48.png" id="3_fr7w2"] [ext_resource type="Texture2D" uid="uid://ds0ii0prt3pij" path="res://assets/graphics/player/run/player run 48x48.png" id="3_gom75"] [ext_resource type="Texture2D" uid="uid://dbrn5rtx4ncnb" path="res://assets/graphics/player/hurt/Player Hurt 48x48.png" id="3_krvug"] [sub_resource type="CircleShape2D" id="CircleShape2D_y4y41"] [sub_resource type="AtlasTexture" id="AtlasTexture_u6c1c"] atlas = ExtResource("2_cy83k") region = Rect2(0, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_3fhqy"] atlas = ExtResource("2_cy83k") region = Rect2(48, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_e287b"] atlas = ExtResource("2_cy83k") region = Rect2(96, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_133il"] atlas = ExtResource("2_cy83k") region = Rect2(144, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_0kl6l"] atlas = ExtResource("2_cy83k") region = Rect2(192, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_3s0rc"] atlas = ExtResource("2_cy83k") region = Rect2(240, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_w1lsm"] atlas = ExtResource("2_cy83k") region = Rect2(288, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_twkd7"] atlas = ExtResource("2_cy83k") region = Rect2(336, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_otxiu"] atlas = ExtResource("2_cy83k") region = Rect2(384, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_jhl08"] atlas = ExtResource("2_cy83k") region = Rect2(432, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_d2i3x"] atlas = ExtResource("3_krvug") region = Rect2(0, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_kdvla"] atlas = ExtResource("3_krvug") region = Rect2(48, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_bbh0j"] atlas = ExtResource("3_krvug") region = Rect2(96, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_52xvf"] atlas = ExtResource("3_krvug") region = Rect2(144, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_mww1u"] atlas = ExtResource("2_h20by") region = Rect2(0, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_ok4l7"] atlas = ExtResource("2_h20by") region = Rect2(48, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_tusxt"] atlas = ExtResource("2_h20by") region = Rect2(96, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_gdc6u"] atlas = ExtResource("2_h20by") region = Rect2(144, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_235hx"] atlas = ExtResource("2_h20by") region = Rect2(192, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_cy5k4"] atlas = ExtResource("2_h20by") region = Rect2(240, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_g3wxi"] atlas = ExtResource("2_h20by") region = Rect2(288, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_aec4t"] atlas = ExtResource("2_h20by") region = Rect2(336, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_3ht28"] atlas = ExtResource("2_h20by") region = Rect2(384, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_5ntut"] atlas = ExtResource("2_h20by") region = Rect2(432, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_8hdk6"] atlas = ExtResource("3_fr7w2") region = Rect2(0, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_4ddi8"] atlas = ExtResource("3_fr7w2") region = Rect2(48, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_ndifq"] atlas = ExtResource("3_fr7w2") region = Rect2(96, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_0rpev"] atlas = ExtResource("3_gom75") region = Rect2(0, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_w0u7q"] atlas = ExtResource("3_gom75") region = Rect2(48, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_csrrm"] atlas = ExtResource("3_gom75") region = Rect2(96, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_n4feg"] atlas = ExtResource("3_gom75") region = Rect2(144, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_eje62"] atlas = ExtResource("3_gom75") region = Rect2(192, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_5yqty"] atlas = ExtResource("3_gom75") region = Rect2(240, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_s7y8g"] atlas = ExtResource("3_gom75") region = Rect2(288, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_kg71y"] atlas = ExtResource("3_gom75") region = Rect2(336, 0, 48, 48) [sub_resource type="SpriteFrames" id="SpriteFrames_gcr48"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_u6c1c") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_3fhqy") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_e287b") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_133il") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_0kl6l") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_3s0rc") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_w1lsm") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_twkd7") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_otxiu") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_jhl08") }], "loop": false, "name": &"death", "speed": 6.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_d2i3x") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_kdvla") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_bbh0j") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_52xvf") }], "loop": false, "name": &"hurt", "speed": 12.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_mww1u") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ok4l7") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_tusxt") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_gdc6u") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_235hx") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_cy5k4") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_g3wxi") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_aec4t") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_3ht28") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_5ntut") }], "loop": true, "name": &"idle", "speed": 12.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_8hdk6") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_4ddi8") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ndifq") }], "loop": false, "name": &"jump", "speed": 6.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_0rpev") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_w0u7q") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_csrrm") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_n4feg") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_eje62") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_5yqty") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_s7y8g") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_kg71y") }], "loop": true, "name": &"run", "speed": 12.0 }] [node name="CharacterBody2D" type="CharacterBody2D" groups=["player"]] script = ExtResource("1_s1kdl") metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("CircleShape2D_y4y41") debug_color = Color(0.752941, 0.211765, 0.984314, 0.419608) [node name="RightRay" type="RayCast2D" parent="."] target_position = Vector2(20, 0) collide_with_areas = true [node name="LeftRay" type="RayCast2D" parent="."] target_position = Vector2(-21, 0) [node name="RightTarget" type="Node2D" parent="."] position = Vector2(10, -5) [node name="LeftTarget" type="Node2D" parent="."] position = Vector2(-10, -5) [node name="Camera2D" type="Camera2D" parent="."] offset = Vector2(0, -20) [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] texture_filter = 1 position = Vector2(0, -5) sprite_frames = SubResource("SpriteFrames_gcr48") animation = &"death" autoplay = "jump" frame = 9 frame_progress = 1.0 [connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]