Add FSM components for player and enemy state management, including initialization and module resolution

This commit is contained in:
MaddoScientisto 2026-02-26 23:13:57 +01:00
commit b6cc5a00e8
57 changed files with 526 additions and 506 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=11 format=3 uid="uid://chpxebhg36bcb"]
[gd_scene format=3 uid="uid://chpxebhg36bcb"]
[ext_resource type="PackedScene" uid="uid://bv7tjma3g7nkf" path="res://Scenes/Actors/3D/game_controller.tscn" id="1_d6hgs"]
[ext_resource type="Resource" uid="uid://bxju78og0t8ca" path="res://Resources/Maps/3D/IsoMapTest3.tres" id="2_l3eiy"]
@ -16,28 +16,28 @@ reflected_light_source = 1
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_w45nv"]
[node name="Factory3" type="Node3D"]
[node name="Factory3" type="Node3D" unique_id=1937514110]
[node name="GameController" parent="." node_paths=PackedStringArray("_cameraTarget") instance=ExtResource("1_d6hgs")]
[node name="GameController" parent="." unique_id=1180859733 node_paths=PackedStringArray("_cameraTarget") instance=ExtResource("1_d6hgs")]
_cameraTarget = NodePath("../CameraTarget")
MapResource = ExtResource("2_l3eiy")
SpawnMarkers = Dictionary[int, NodePath]({
0: NodePath("../StartPosition")
})
[node name="DirectionalLight3D_Original" type="DirectionalLight3D" parent="."]
[node name="DirectionalLight3D_Original" type="DirectionalLight3D" parent="." unique_id=1574778523]
transform = Transform3D(0.442606, -0.744379, 0.5, 0.287606, 0.645974, 0.707107, -0.849343, -0.169167, 0.5, 28.5973, 5.82742, 17.535)
visible = false
light_energy = 1.375
light_bake_mode = 1
shadow_enabled = true
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=2188957]
transform = Transform3D(0.401703, -0.767225, 0.5, 0.322119, 0.629476, 0.707107, -0.857248, -0.122987, 0.5, 28.5973, 5.82742, 17.535)
light_energy = 1.375
light_bake_mode = 1
[node name="DirectionalLight3D2" type="DirectionalLight3D" parent="."]
[node name="DirectionalLight3D2" type="DirectionalLight3D" parent="." unique_id=28867131]
transform = Transform3D(0.0306036, -0.825802, -0.56313, -0.675985, -0.43211, 0.596931, -0.73628, 0.362399, -0.571454, 27.8154, 5.82742, 13.9456)
light_energy = 0.932
light_bake_mode = 1
@ -45,15 +45,15 @@ shadow_enabled = true
shadow_blur = 0.51
sky_mode = 1
[node name="StartPosition" type="Marker3D" parent="."]
[node name="StartPosition" type="Marker3D" parent="." unique_id=840698087]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.524396, 1.4927001, 1.6348801)
script = ExtResource("8_jaqd3")
[node name="CameraTarget" type="Marker3D" parent="."]
[node name="CameraTarget" type="Marker3D" parent="." unique_id=1770556508]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.0461216, 2.33215, 2.5474238)
script = ExtResource("9_py8ao")
[node name="Camera3D" type="Camera3D" parent="."]
[node name="Camera3D" type="Camera3D" parent="." unique_id=1465586253]
physics_interpolation_mode = 1
transform = Transform3D(0.7071068, -0.49999997, 0.50000006, 0, 0.7071069, 0.70710677, -0.7071068, -0.49999997, 0.50000006, -3.7983856, 7.935, 5.0604153)
projection = 1
@ -63,12 +63,12 @@ MaxAimOffsetDistance = 16.0
CameraOffset = Vector3(8, 8, 8)
TargetPath = NodePath("../CameraTarget")
[node name="TestLevel3" parent="." instance=ExtResource("11_l3eiy")]
[node name="TestLevel3" parent="." unique_id=615675558 instance=ExtResource("11_l3eiy")]
[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("12_44k7r")]
[node name="AudioStreamPlayer2D" parent="." unique_id=254428228 instance=ExtResource("12_44k7r")]
autoplay = true
MusicData = ExtResource("13_isg5t")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1912346680]
environment = SubResource("Environment_d6hgs")
camera_attributes = SubResource("CameraAttributesPractical_w45nv")