2022-11-18 13:53:51 -08:00
|
|
|
[gd_scene load_steps=11 format=3 uid="uid://bncaar8vp3b84"]
|
2022-11-10 20:29:53 -08:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://Characters/Player.cs" id="1_flygr"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bw052v8ikfget" path="res://icon.svg" id="2_xmgd1"]
|
2022-11-13 15:42:04 -08:00
|
|
|
[ext_resource type="Script" path="res://Characters/States/Machine.cs" id="3_npkjp"]
|
|
|
|
[ext_resource type="Script" path="res://Characters/States/PlayerIdleState.cs" id="4_4k4mb"]
|
|
|
|
[ext_resource type="Script" path="res://Characters/States/PlayerMoveState.cs" id="5_tx5rw"]
|
|
|
|
[ext_resource type="Script" path="res://Characters/States/PlayerRollState.cs" id="6_6bgrj"]
|
2022-11-18 13:53:51 -08:00
|
|
|
[ext_resource type="PackedScene" uid="uid://cajlwb67xenfy" path="res://Items/Weapons/Sword.tscn" id="7_4rxuv"]
|
|
|
|
[ext_resource type="Script" path="res://Items/Inventory.cs" id="7_xyenu"]
|
2022-11-10 20:29:53 -08:00
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_bfqew"]
|
|
|
|
size = Vector2(32, 16)
|
|
|
|
|
2022-11-13 15:42:04 -08:00
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_q5h1n"]
|
|
|
|
font_size = 24
|
|
|
|
|
|
|
|
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("StateMachine")]
|
2022-11-10 20:29:53 -08:00
|
|
|
script = ExtResource("1_flygr")
|
2022-11-18 13:53:51 -08:00
|
|
|
Speed = 64.0
|
2022-11-13 15:42:04 -08:00
|
|
|
StateMachine = NodePath("StateMachine")
|
2022-11-10 20:29:53 -08:00
|
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
|
|
scale = Vector2(0.25, 0.25)
|
|
|
|
texture = ExtResource("2_xmgd1")
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
position = Vector2(0, 8)
|
|
|
|
shape = SubResource("RectangleShape2D_bfqew")
|
|
|
|
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
|
|
current = true
|
2022-11-12 16:45:04 -08:00
|
|
|
zoom = Vector2(4, 4)
|
|
|
|
|
2022-11-13 15:42:04 -08:00
|
|
|
[node name="StateMachine" type="Node" parent="." node_paths=PackedStringArray("InitialState", "Character")]
|
|
|
|
script = ExtResource("3_npkjp")
|
|
|
|
InitialState = NodePath("Idle")
|
|
|
|
Character = NodePath("..")
|
|
|
|
DebugLevel = 2
|
|
|
|
|
|
|
|
[node name="Idle" type="Node" parent="StateMachine" node_paths=PackedStringArray("MoveState")]
|
|
|
|
script = ExtResource("4_4k4mb")
|
|
|
|
MoveState = NodePath("../Move")
|
|
|
|
|
|
|
|
[node name="Move" type="Node" parent="StateMachine" node_paths=PackedStringArray("IdleState", "RollState")]
|
|
|
|
script = ExtResource("5_tx5rw")
|
|
|
|
IdleState = NodePath("../Idle")
|
|
|
|
RollState = NodePath("../Roll")
|
|
|
|
|
|
|
|
[node name="Roll" type="Node" parent="StateMachine" node_paths=PackedStringArray("IdleState")]
|
|
|
|
script = ExtResource("6_6bgrj")
|
|
|
|
IdleState = NodePath("../Idle")
|
|
|
|
|
|
|
|
[node name="Debug" type="Control" parent="."]
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 0
|
|
|
|
|
|
|
|
[node name="State" type="Label" parent="Debug"]
|
|
|
|
offset_left = -20.0
|
|
|
|
offset_top = -60.0
|
|
|
|
offset_right = 20.0
|
|
|
|
offset_bottom = -34.0
|
|
|
|
text = "lol"
|
|
|
|
label_settings = SubResource("LabelSettings_q5h1n")
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="Node" type="Node" parent="."]
|
2022-11-13 19:52:09 -08:00
|
|
|
|
|
|
|
[node name="Inventory" type="Node2D" parent="."]
|
2022-11-18 13:53:51 -08:00
|
|
|
script = ExtResource("7_xyenu")
|
|
|
|
|
|
|
|
[node name="Sword" parent="Inventory" instance=ExtResource("7_4rxuv")]
|
|
|
|
position = Vector2(21, 0)
|