commit 8e7da96bfcd52b230feaf40fbc6d4a42b80c5723
Author: TheThomaas <thethomaas@protonmail.ch>
Date: Sat Oct 17 18:55:14 2026 +0200
Make state machine more reusable
commit 37da7248b8c33ce95cff7ef9332c5ccf6e3cd418
Author: TheThomaas <thethomaas@protonmail.ch>
Date: Sat Oct 17 18:44:34 2026 +0200
Change aim state into flag
commit fbb3a84a12e2cabff9b36390da7483b8de7e9379
Author: TheThomaas <thethomaas@protonmail.ch>
Date: Sat Oct 17 18:33:08 2026 +0200
Replace fixed references with ui references
commit 913955b13e9980780ac88761845d9e1f165f0d0e
Author: TheThomaas <thethomaas@protonmail.ch>
Date: Fri Oct 16 13:32:21 2026 +0200
Update camera action handling
commit 4ce0ac13ffea473cf62c2fefd1571e9df1fbbcaa
Author: TheThomaas <thethomaas@protonmail.ch>
Date: Fri Oct 16 13:04:39 2026 +0200
Update mounting system
commit e410eca38760955b2866eecd6ac0281e2041e76d
Author: TheThomaas <thethomaas@protonmail.ch>
Date: Fri Oct 16 12:57:25 2026 +0200
Update aiming system
commit 4c788df485ccbff5f91fd51d9f480e495f11da5f
Author: TheThomaas <thethomaas@protonmail.ch>
Date: Thu Oct 15 21:50:26 2026 +0200
Centralize states names into constants
commit 6059479c87d749e986a48adb520ef33121104da5
Author: TheThomaas <thethomaas@protonmail.ch>
Date: Thu Oct 15 21:25:32 2026 +0200
Refator Crouch state into flag
commit 08faec70e770042d36eed6f173a63f3aac1f67c6
Author: TheThomaas <thethomaas@protonmail.ch>
Date: Wed Oct 14 10:19:35 2026 +0200
Update player input management and state machine
commit 11a0aecc58c50c5862a03b4fd0b55e8db024031f
Author: TheThomaas <thethomaas@protonmail.ch>
Date: Wed Oct 14 10:17:06 2026 +0200
Delete charizard.tres
commit 399eac2b6c64f242a1c2e12360d811127f87681c
Author: TheThomaas <thethomaas@protonmail.ch>
Date: Tue Oct 13 18:20:45 2026 +0200
Remove unused MountedState
commit 42a3668c52fe96a7509a74290a94fc5a8084b713
Author: TheThomaas <thethomaas@protonmail.ch>
Date: Tue Oct 13 18:18:08 2026 +0200
Group grounded states under common class
137 lines
6.9 KiB
Plaintext
137 lines
6.9 KiB
Plaintext
[gd_scene format=3 uid="uid://dwxpt0s7vn36k"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://b2gh50nogfllj" path="res://game/player/camera/camera_holder.tscn" id="1_obar5"]
|
|
[ext_resource type="Script" uid="uid://br1dfd4fltlef" path="res://game/player/player_character.gd" id="1_pj0hh"]
|
|
[ext_resource type="Material" uid="uid://oh4kyswey7gr" path="res://game/player/shader/BOTW_Toon_material.tres" id="2_1g6dm"]
|
|
[ext_resource type="Script" uid="uid://c8vfvcjtsb220" path="res://game/player/input/input_management_component.gd" id="2_r5dqo"]
|
|
[ext_resource type="Script" uid="uid://dy4wrpvpep1jq" path="res://game/player/states/state_machine.gd" id="3_o4naa"]
|
|
[ext_resource type="Script" uid="uid://bf6hjwfa74ttj" path="res://game/player/states/idle_state.gd" id="4_38lxl"]
|
|
[ext_resource type="Script" uid="uid://2agliol5dulc" path="res://game/player/states/walk_state.gd" id="4_lg056"]
|
|
[ext_resource type="Script" uid="uid://dr5p8ygj25w6x" path="res://game/player/states/jump_state.gd" id="6_lwgph"]
|
|
[ext_resource type="Resource" uid="uid://cdx4qndy5xwto" path="res://data/hints/jump.tres" id="7_56w3b"]
|
|
[ext_resource type="Script" uid="uid://dpcfffs3vt5co" path="res://game/player/states/run_state.gd" id="8_j4mf1"]
|
|
[ext_resource type="Script" uid="uid://c3jh22p4w3xco" path="res://game/player/states/throw_state.gd" id="8_k0r6x"]
|
|
[ext_resource type="Script" uid="uid://bwojkp7yrwswt" path="res://game/player/states/dodge_state.gd" id="9_6abew"]
|
|
[ext_resource type="Resource" uid="uid://c4fqcdrf6il7v" path="res://data/hints/switch_target.tres" id="11_lapey"]
|
|
[ext_resource type="Resource" uid="uid://bow3d0e0fcto7" path="res://data/hints/cancel_throw.tres" id="12_iqmup"]
|
|
[ext_resource type="Script" uid="uid://c820hnwuwpmlg" path="res://game/player/input/recall_input.gd" id="13_siyau"]
|
|
[ext_resource type="Script" uid="uid://c4vkkdl0an244" path="res://game/mount/mount_rider.gd" id="14_dkijf"]
|
|
[ext_resource type="Script" uid="uid://sixraavy7k2h" path="res://game/player/states/inair_state.gd" id="16_lapey"]
|
|
[ext_resource type="Resource" uid="uid://c18ntr4wb56m2" path="res://data/hints/mount.tres" id="20_lapey"]
|
|
[ext_resource type="Resource" uid="uid://cfl2q6f3sjy1v" path="res://data/hints/dismount.tres" id="21_iqmup"]
|
|
[ext_resource type="Script" uid="uid://b0j1jxv6uu2y8" path="res://game/player/input/state_hints.gd" id="22_iqmup"]
|
|
[ext_resource type="Script" uid="uid://qh738m0cmw8b" path="res://game/player/aim/aim_targeting.gd" id="22_p12ry"]
|
|
[ext_resource type="Script" uid="uid://bxt8qv1xyw2nl" path="res://game/player/aim/throw_resolver.gd" id="23_6dxcy"]
|
|
|
|
[sub_resource type="Curve" id="Curve_kxr4l"]
|
|
_limits = [0.0, 10.0, 0.0, 1.0]
|
|
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.6640625, 2.3387098), 0.0, 0.0, 0, 0, Vector2(1, 6.370968), 0.0, 0.0, 0, 0]
|
|
point_count = 3
|
|
|
|
[sub_resource type="Curve" id="Curve_j4mf1"]
|
|
_limits = [0.0, 10.0, 0.0, 1.0]
|
|
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 10), 0.0, 0.0, 0, 0]
|
|
point_count = 2
|
|
|
|
[sub_resource type="Curve" id="Curve_6abew"]
|
|
_limits = [0.0, 10.0, 0.0, 1.0]
|
|
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.6640625, 3.467742), 0.0, 0.0, 0, 0, Vector2(1, 6.451613), 0.0, 0.0, 0, 0]
|
|
point_count = 3
|
|
|
|
[sub_resource type="Curve" id="Curve_mi63v"]
|
|
_limits = [0.0, 10.0, 0.0, 1.0]
|
|
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 9.83871), 0.0, 0.0, 0, 0]
|
|
point_count = 2
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_3agn1"]
|
|
size = Vector3(0.1484375, 0.1640625, 0.907959)
|
|
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_3agn1"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_3agn1"]
|
|
|
|
[node name="PlayerCharacter" type="CharacterBody3D" unique_id=1830301535 node_paths=PackedStringArray("visual_root", "cam_holder", "state_machine", "collision_shape_3d")]
|
|
script = ExtResource("1_pj0hh")
|
|
nb_jumps_in_air_allowed = 0
|
|
coyote_jump_cooldown = 1.0
|
|
in_air_move_speed = Array[Curve]([SubResource("Curve_kxr4l"), SubResource("Curve_j4mf1")])
|
|
in_air_accel = Array[Curve]([SubResource("Curve_6abew"), SubResource("Curve_mi63v")])
|
|
hit_wall_cut_velocity = true
|
|
follow_cam_pos_when_aimed = true
|
|
visual_root = NodePath("VisualRoot")
|
|
cam_holder = NodePath("CameraHolder")
|
|
state_machine = NodePath("StateMachine")
|
|
collision_shape_3d = NodePath("CollisionShape3D")
|
|
|
|
[node name="VisualRoot" type="Node3D" parent="." unique_id=1587327772]
|
|
unique_name_in_owner = true
|
|
|
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="VisualRoot" unique_id=670759105]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4555889, 0.5468005)
|
|
material_override = ExtResource("2_1g6dm")
|
|
mesh = SubResource("BoxMesh_3agn1")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="VisualRoot" unique_id=1202850119]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
material_override = ExtResource("2_1g6dm")
|
|
mesh = SubResource("CapsuleMesh_3agn1")
|
|
|
|
[node name="CameraHolder" parent="." unique_id=232451612 instance=ExtResource("1_obar5")]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, -0.009075999, 1.6803148, 0.01983509)
|
|
fov_val = 30.0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1800756522]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
shape = SubResource("CapsuleShape3D_3agn1")
|
|
|
|
[node name="StateMachine" type="Node" parent="." unique_id=1128144703 node_paths=PackedStringArray("initial_state")]
|
|
unique_name_in_owner = true
|
|
script = ExtResource("3_o4naa")
|
|
initial_state = NodePath("IdleState")
|
|
|
|
[node name="IdleState" type="Node" parent="StateMachine" unique_id=1417869633]
|
|
script = ExtResource("4_38lxl")
|
|
|
|
[node name="WalkState" type="Node" parent="StateMachine" unique_id=1524475809]
|
|
script = ExtResource("4_lg056")
|
|
|
|
[node name="JumpState" type="Node" parent="StateMachine" unique_id=711160985]
|
|
script = ExtResource("6_lwgph")
|
|
|
|
[node name="ThrowState" type="Node" parent="StateMachine" unique_id=1159570489]
|
|
script = ExtResource("8_k0r6x")
|
|
cancel_hint = ExtResource("12_iqmup")
|
|
|
|
[node name="RunState" type="Node" parent="StateMachine" unique_id=1345421775]
|
|
script = ExtResource("8_j4mf1")
|
|
|
|
[node name="DodgeState" type="Node" parent="StateMachine" unique_id=232179400]
|
|
script = ExtResource("9_6abew")
|
|
|
|
[node name="InairState" type="Node" parent="StateMachine" unique_id=1405519998]
|
|
script = ExtResource("16_lapey")
|
|
|
|
[node name="InputManagementComponent" type="Node" parent="." unique_id=1981951371]
|
|
script = ExtResource("2_r5dqo")
|
|
|
|
[node name="RecallInput" type="Node" parent="." unique_id=1544887696]
|
|
script = ExtResource("13_siyau")
|
|
|
|
[node name="MountRider" type="Node" parent="." unique_id=639128028]
|
|
script = ExtResource("14_dkijf")
|
|
mount_hint = ExtResource("20_lapey")
|
|
dismount_hint = ExtResource("21_iqmup")
|
|
jump_hint = ExtResource("7_56w3b")
|
|
|
|
[node name="AimTargeting" type="Node" parent="." unique_id=1285504499]
|
|
script = ExtResource("22_p12ry")
|
|
switch_hint = ExtResource("11_lapey")
|
|
|
|
[node name="ThrowResolver" type="Node" parent="." unique_id=1062063502]
|
|
script = ExtResource("23_6dxcy")
|
|
|
|
[node name="StateHints" type="Node" parent="." unique_id=686759706]
|
|
script = ExtResource("22_iqmup")
|