[gd_scene load_steps=39 format=3 uid="uid://b6p8tudwratl1"] [ext_resource type="Script" uid="uid://b70ubhqc16nw4" path="res://Library/Characters/PlayerInput.cs" id="1_40svl"] [ext_resource type="Script" uid="uid://b4thjem54fyfl" path="res://Library/Characters/Player.cs" id="1_utp2y"] [ext_resource type="Texture2D" uid="uid://bci0ojcx84f7w" path="res://Assets/characters/player.png" id="1_v0iea"] [ext_resource type="Script" uid="uid://bytos0ecojls1" path="res://Library/Characters/CharacterMovement.cs" id="2_al8ar"] [ext_resource type="Script" uid="uid://bfijr6flufatm" path="res://Library/Characters/CharacterAnimation.cs" id="4_gy20a"] [ext_resource type="Script" uid="uid://dxo0eunwolubm" path="res://Library/Utilities/StateMachine.cs" id="5_cqrjx"] [ext_resource type="Script" uid="uid://eadca5ac4oeu" path="res://Library/Characters/CharacterCollisionRayCast.cs" id="6_gdgf0"] [ext_resource type="Script" uid="uid://c5nu12q4or8pw" path="res://Library/Characters/States/PlayerRoamState.cs" id="6_khnq4"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_cvnsp"] size = Vector2(16, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_6t5aa"] atlas = ExtResource("1_v0iea") region = Rect2(0, 0, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_vgqql"] atlas = ExtResource("1_v0iea") region = Rect2(0, 48, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_fkybt"] atlas = ExtResource("1_v0iea") region = Rect2(0, 96, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_x3wgy"] atlas = ExtResource("1_v0iea") region = Rect2(0, 144, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_3smsa"] atlas = ExtResource("1_v0iea") region = Rect2(32, 0, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_8erm5"] atlas = ExtResource("1_v0iea") region = Rect2(0, 0, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_f1ek2"] atlas = ExtResource("1_v0iea") region = Rect2(32, 48, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_tx1dd"] atlas = ExtResource("1_v0iea") region = Rect2(0, 48, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_gymyn"] atlas = ExtResource("1_v0iea") region = Rect2(32, 96, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_pu2lt"] atlas = ExtResource("1_v0iea") region = Rect2(0, 96, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_ukyrk"] atlas = ExtResource("1_v0iea") region = Rect2(32, 144, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_7dp3o"] atlas = ExtResource("1_v0iea") region = Rect2(0, 144, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_h4iuc"] atlas = ExtResource("1_v0iea") region = Rect2(32, 0, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_fd4e3"] atlas = ExtResource("1_v0iea") region = Rect2(64, 0, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_qqcod"] atlas = ExtResource("1_v0iea") region = Rect2(96, 0, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_igrcy"] atlas = ExtResource("1_v0iea") region = Rect2(0, 0, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_fs7ks"] atlas = ExtResource("1_v0iea") region = Rect2(32, 48, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_l6n3p"] atlas = ExtResource("1_v0iea") region = Rect2(64, 48, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_olqyp"] atlas = ExtResource("1_v0iea") region = Rect2(96, 48, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_wpjfl"] atlas = ExtResource("1_v0iea") region = Rect2(0, 48, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_bi64h"] atlas = ExtResource("1_v0iea") region = Rect2(32, 96, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_2ijsl"] atlas = ExtResource("1_v0iea") region = Rect2(64, 96, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_p1odr"] atlas = ExtResource("1_v0iea") region = Rect2(96, 96, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_0gysh"] atlas = ExtResource("1_v0iea") region = Rect2(0, 96, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_vfarp"] atlas = ExtResource("1_v0iea") region = Rect2(32, 144, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_y6uwr"] atlas = ExtResource("1_v0iea") region = Rect2(64, 144, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_83xs0"] atlas = ExtResource("1_v0iea") region = Rect2(96, 144, 32, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_ypfnu"] atlas = ExtResource("1_v0iea") region = Rect2(0, 144, 32, 48) [sub_resource type="SpriteFrames" id="SpriteFrames_xuaoq"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_6t5aa") }], "loop": true, "name": &"idle_down", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_vgqql") }], "loop": true, "name": &"idle_left", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_fkybt") }], "loop": true, "name": &"idle_right", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_x3wgy") }], "loop": true, "name": &"idle_up", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_3smsa") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_8erm5") }], "loop": false, "name": &"turn_down", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_f1ek2") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_tx1dd") }], "loop": false, "name": &"turn_left", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_gymyn") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_pu2lt") }], "loop": false, "name": &"turn_right", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_ukyrk") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_7dp3o") }], "loop": false, "name": &"turn_up", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_h4iuc") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_fd4e3") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_qqcod") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_igrcy") }], "loop": true, "name": &"walk_down", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_fs7ks") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_l6n3p") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_olqyp") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_wpjfl") }], "loop": true, "name": &"walk_left", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_bi64h") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_2ijsl") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_p1odr") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_0gysh") }], "loop": true, "name": &"walk_right", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_vfarp") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_y6uwr") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_83xs0") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ypfnu") }], "loop": true, "name": &"walk_up", "speed": 5.0 }] [node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("StateMachine")] script = ExtResource("1_utp2y") StateMachine = NodePath("StateMachine") [node name="Collider" type="CollisionShape2D" parent="."] position = Vector2(8, 8) shape = SubResource("RectangleShape2D_cvnsp") [node name="Input" type="Node" parent="."] script = ExtResource("1_40svl") [node name="Movement" type="Node" parent="." node_paths=PackedStringArray("Character", "CharacterInput", "CharacterCollisionRayCast")] script = ExtResource("2_al8ar") Character = NodePath("..") CharacterInput = NodePath("../Input") CharacterCollisionRayCast = NodePath("../CollisionRayCast") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." node_paths=PackedStringArray("CharacterInput", "CharacterMovement")] position = Vector2(8, 4) scale = Vector2(0.5, 0.5) sprite_frames = SubResource("SpriteFrames_xuaoq") animation = &"idle_down" script = ExtResource("4_gy20a") CharacterInput = NodePath("../Input") CharacterMovement = NodePath("../Movement") [node name="Camera2D" type="Camera2D" parent="."] position = Vector2(8, 8) zoom = Vector2(3, 3) position_smoothing_enabled = true [node name="CollisionRayCast" type="RayCast2D" parent="." node_paths=PackedStringArray("CharacterInput")] position = Vector2(8, 8) target_position = Vector2(0, 16) collide_with_areas = true script = ExtResource("6_gdgf0") CharacterInput = NodePath("../Input") [node name="StateMachine" type="Node" parent="." node_paths=PackedStringArray("Customer")] script = ExtResource("5_cqrjx") Customer = NodePath("..") [node name="Roam" type="Node" parent="StateMachine" node_paths=PackedStringArray("PlayerInput")] script = ExtResource("6_khnq4") PlayerInput = NodePath("../../Input")