From f5e47e9f5ea1e33dd8848c79296513e75b324bad Mon Sep 17 00:00:00 2001 From: Minimata Date: Wed, 22 Apr 2026 09:47:15 +0200 Subject: [PATCH] minor fixes --- maps/levels/1 - tuto_movement.tscn | 21 ++++++++++++------- .../scripts/PlayerController.cs | 4 ++-- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/maps/levels/1 - tuto_movement.tscn b/maps/levels/1 - tuto_movement.tscn index 17dca72e..cf0a0712 100644 --- a/maps/levels/1 - tuto_movement.tscn +++ b/maps/levels/1 - tuto_movement.tscn @@ -41,7 +41,7 @@ size = Vector3(6.75, 8.25, 7.25) [node name="Main" unique_id=955321579 instance=ExtResource("1_jyq54")] -[node name="DirectionalLight3D" parent="." index="5" unique_id=1357990191] +[node name="DirectionalLight3D" parent="." index="6" unique_id=1357990191] transform = Transform3D(-0.1772511, 0.44628847, 0.87715954, 0.49540228, -0.72966087, 0.4713508, 0.85038733, 0.51809436, -0.09175911, 0, 0, 0) [node name="Greybox" type="CSGCombiner3D" parent="." index="7" unique_id=2082385716] @@ -907,9 +907,9 @@ light_energy = 8.571 omni_range = 7.0 [node name="OmniLight3D29" type="OmniLight3D" parent="Lights" index="24" unique_id=2143811783] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -37, 25.5, -16.5) +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -37, 16.75, -18.75) light_energy = 4.004 -omni_range = 7.0 +omni_range = 9.25 [node name="OmniLight3D20" type="OmniLight3D" parent="Lights" index="25" unique_id=1665621589] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -37, 24.5, -35.25) @@ -934,14 +934,19 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -33.5, 24.5, -47) light_energy = 2.725 omni_range = 10.0 -[node name="OmniLight3D25" type="OmniLight3D" parent="Lights" index="30" unique_id=727558952] +[node name="OmniLight3D34" type="OmniLight3D" parent="Lights" index="30" unique_id=2065211844] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -36.25, 13.75, -45.5) +light_energy = 2.725 +omni_range = 10.0 + +[node name="OmniLight3D25" type="OmniLight3D" parent="Lights" index="31" unique_id=727558952] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -28, 24.5, -51) -[node name="OmniLight3D26" type="OmniLight3D" parent="Lights" index="31" unique_id=1646376304] +[node name="OmniLight3D26" type="OmniLight3D" parent="Lights" index="32" unique_id=1646376304] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -20, 24.5, -51.5) omni_range = 7.0 -[node name="OmniLight3D27" type="OmniLight3D" parent="Lights" index="32" unique_id=1849438050] +[node name="OmniLight3D27" type="OmniLight3D" parent="Lights" index="33" unique_id=1849438050] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -20, 24.5, -51.5) omni_range = 4.5 @@ -1047,10 +1052,10 @@ tuto_text = "Select next level when ready" transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.875, 1.125, -4.625) shape = SubResource("BoxShape3D_7hd1j") -[node name="Player" parent="." index="11" unique_id=1309399929] +[node name="Player" parent="." index="12" unique_id=1309399929] transform = Transform3D(0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994, -0.5, 0.4102497, 0.5415039) HasSword = false HasParry = false -[node name="PlayerFellRespawn" parent="." index="12" unique_id=479136076] +[node name="PlayerFellRespawn" parent="." index="13" unique_id=479136076] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.25, -1.25) diff --git a/scenes/player_controller/scripts/PlayerController.cs b/scenes/player_controller/scripts/PlayerController.cs index 7a2d8d5b..12bf553e 100644 --- a/scenes/player_controller/scripts/PlayerController.cs +++ b/scenes/player_controller/scripts/PlayerController.cs @@ -2318,13 +2318,13 @@ public partial class PlayerController : CharacterBody3D, // Manage gameplay systems MantleSystem.ProcessMantle(_grounded.Active); HandleEnemyTargeting(); + // Manage head and camera movement + LookAround(delta); } // private float _oldMana = 100; public override void _Process(double delta) { - // Manage head and camera movement - LookAround(delta); EffectsManager.UpdateEffects(delta); }