[gd_scene load_steps=55 format=3 uid="uid://pldxcq54fei5"] [ext_resource type="Script" uid="uid://ddiwahqiekcqp" path="res://scripts/player.gd" id="1_j1k7i"] [ext_resource type="Texture2D" uid="uid://cfst1xv0quili" path="res://assets/top-down-adam-idle.png" id="1_ykc1o"] [ext_resource type="Texture2D" uid="uid://gxwk6kki0y1u" path="res://assets/top-down-adam-walk.png" id="3_ayngq"] [ext_resource type="PackedScene" uid="uid://dgotxye77b7mr" path="res://scenes/debug_layer.tscn" id="3_niqac"] [sub_resource type="AtlasTexture" id="AtlasTexture_j1k7i"] atlas = ExtResource("1_ykc1o") region = Rect2(288, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_tidp7"] atlas = ExtResource("1_ykc1o") region = Rect2(304, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_eotbk"] atlas = ExtResource("1_ykc1o") region = Rect2(320, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_vdid1"] atlas = ExtResource("1_ykc1o") region = Rect2(336, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_40y4h"] atlas = ExtResource("1_ykc1o") region = Rect2(352, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_xoay6"] atlas = ExtResource("1_ykc1o") region = Rect2(368, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_arqjq"] atlas = ExtResource("1_ykc1o") region = Rect2(192, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_2dryk"] atlas = ExtResource("1_ykc1o") region = Rect2(208, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_t483v"] atlas = ExtResource("1_ykc1o") region = Rect2(224, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_pkuya"] atlas = ExtResource("1_ykc1o") region = Rect2(240, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_if3ei"] atlas = ExtResource("1_ykc1o") region = Rect2(256, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_v21ou"] atlas = ExtResource("1_ykc1o") region = Rect2(272, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_2uj3n"] atlas = ExtResource("1_ykc1o") region = Rect2(0, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_bovn1"] atlas = ExtResource("1_ykc1o") region = Rect2(16, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_0qby2"] atlas = ExtResource("1_ykc1o") region = Rect2(32, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_7rew6"] atlas = ExtResource("1_ykc1o") region = Rect2(48, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_jw7de"] atlas = ExtResource("1_ykc1o") region = Rect2(64, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_5s4g8"] atlas = ExtResource("1_ykc1o") region = Rect2(80, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_o45cr"] atlas = ExtResource("1_ykc1o") region = Rect2(96, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_4fr7e"] atlas = ExtResource("1_ykc1o") region = Rect2(112, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_b2f8q"] atlas = ExtResource("1_ykc1o") region = Rect2(128, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_v3ltj"] atlas = ExtResource("1_ykc1o") region = Rect2(144, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_44jvg"] atlas = ExtResource("1_ykc1o") region = Rect2(160, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_r14ix"] atlas = ExtResource("1_ykc1o") region = Rect2(176, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_wtinw"] atlas = ExtResource("3_ayngq") region = Rect2(288, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_h8lvs"] atlas = ExtResource("3_ayngq") region = Rect2(304, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_e64ve"] atlas = ExtResource("3_ayngq") region = Rect2(320, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_n0gu0"] atlas = ExtResource("3_ayngq") region = Rect2(336, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_8kb50"] atlas = ExtResource("3_ayngq") region = Rect2(352, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_6q50s"] atlas = ExtResource("3_ayngq") region = Rect2(368, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_nc4xq"] atlas = ExtResource("3_ayngq") region = Rect2(192, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_xo1yp"] atlas = ExtResource("3_ayngq") region = Rect2(208, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_ee46x"] atlas = ExtResource("3_ayngq") region = Rect2(224, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_vnedn"] atlas = ExtResource("3_ayngq") region = Rect2(240, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_ejyhw"] atlas = ExtResource("3_ayngq") region = Rect2(256, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_m1eql"] atlas = ExtResource("3_ayngq") region = Rect2(272, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_00hqc"] atlas = ExtResource("3_ayngq") region = Rect2(0, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_jhyaw"] atlas = ExtResource("3_ayngq") region = Rect2(16, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_tv3qk"] atlas = ExtResource("3_ayngq") region = Rect2(32, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_81uvs"] atlas = ExtResource("3_ayngq") region = Rect2(48, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_8q122"] atlas = ExtResource("3_ayngq") region = Rect2(64, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_tqc8n"] atlas = ExtResource("3_ayngq") region = Rect2(80, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_itr70"] atlas = ExtResource("3_ayngq") region = Rect2(96, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_jtg6r"] atlas = ExtResource("3_ayngq") region = Rect2(112, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_0cauu"] atlas = ExtResource("3_ayngq") region = Rect2(128, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_fvj7k"] atlas = ExtResource("3_ayngq") region = Rect2(144, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_6qh68"] atlas = ExtResource("3_ayngq") region = Rect2(160, 0, 16, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_h8qjx"] atlas = ExtResource("3_ayngq") region = Rect2(176, 0, 16, 32) [sub_resource type="SpriteFrames" id="SpriteFrames_11i01"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_j1k7i") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_tidp7") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_eotbk") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_vdid1") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_40y4h") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_xoay6") }], "loop": true, "name": &"idle_down", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_arqjq") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_2dryk") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_t483v") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_pkuya") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_if3ei") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_v21ou") }], "loop": true, "name": &"idle_left", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_2uj3n") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_bovn1") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_0qby2") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_7rew6") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_jw7de") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_5s4g8") }], "loop": true, "name": &"idle_right", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_o45cr") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_4fr7e") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_b2f8q") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_v3ltj") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_44jvg") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_r14ix") }], "loop": true, "name": &"idle_up", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_wtinw") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_h8lvs") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_e64ve") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_n0gu0") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_8kb50") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_6q50s") }], "loop": true, "name": &"walk_down", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_nc4xq") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_xo1yp") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ee46x") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_vnedn") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ejyhw") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_m1eql") }], "loop": true, "name": &"walk_left", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_00hqc") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_jhyaw") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_tv3qk") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_81uvs") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_8q122") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_tqc8n") }], "loop": true, "name": &"walk_right", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_itr70") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_jtg6r") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_0cauu") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_fvj7k") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_6qh68") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_h8qjx") }], "loop": true, "name": &"walk_up", "speed": 5.0 }] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_ykc1o"] radius = 7.0 height = 16.0 [node name="Player" type="CharacterBody2D"] script = ExtResource("1_j1k7i") [node name="PlayerSprite" type="AnimatedSprite2D" parent="."] sprite_frames = SubResource("SpriteFrames_11i01") animation = &"walk_up" autoplay = "idle_down" [node name="PlayerCollider" type="CollisionShape2D" parent="."] position = Vector2(0, 8) shape = SubResource("CapsuleShape2D_ykc1o") [node name="PlayerCamera" type="Camera2D" parent="."] zoom = Vector2(4, 4) [node name="PlayerDebug" parent="." instance=ExtResource("3_niqac")] visible = false variables_to_track = Array[String](["current_direction", "current_direction_string", "velocity", "input_vector"])