Compare commits

...

6 commits

Author SHA1 Message Date
Sara cb7332fd6f tweak: lighting settings 2025-08-22 15:58:07 +02:00
Sara 7081df1dae fix: vsync settings causing frame swapping issues 2025-08-22 15:57:58 +02:00
Sara 3c20402254 tweak: increased FOV 2025-08-22 15:56:43 +02:00
Sara cded496e4c feat: adjusted level scene 2025-08-22 15:56:24 +02:00
Sara 53a5118079 feat: lifted player input mouse look speed to variable 2025-08-22 15:49:01 +02:00
Sara 2a083b6430 fix: formatting enemy_body.cpp 2025-08-22 15:48:29 +02:00
7 changed files with 25 additions and 18 deletions

View file

@ -7,10 +7,10 @@ void EnemyBody::_bind_methods() {
}
void EnemyBody::on_child_added(Node *node) {
if (StateMachine *fsm{ cast_to<StateMachine>(node) }) {
if (StateMachine * fsm{ cast_to<StateMachine>(node) }) {
this->fsm = fsm;
}
if (NavigationAgent3D *nav{ cast_to<NavigationAgent3D>(node) }) {
if (NavigationAgent3D * nav{ cast_to<NavigationAgent3D>(node) }) {
this->nav = nav;
}
}

View file

@ -66,7 +66,7 @@ void PlayerInput::unhandled_input(Ref<InputEvent> const &event) {
}
Ref<InputEventMouseMotion> mouse_motion{ event };
if (mouse_motion.is_valid()) {
Vector2 state{ -mouse_motion->get_relative() * 0.0005f };
Vector2 state{ -mouse_motion->get_relative() * this->mouselook_speed };
emit_signal(sig_look_input, state);
}
if (event->is_action("primary_fire")) {

View file

@ -24,6 +24,7 @@ public:
private:
bool was_paused{ false };
float mouselook_speed{ 0.0025f };
};
#endif // !PLAYER_INPUT_H

View file

@ -6,8 +6,8 @@
[ext_resource type="PackedScene" uid="uid://bt054d3ic71rf" path="res://guis/pause_menu.tscn" id="3_28e7h"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_ien74"]
sky_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)
ground_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)
sky_curve = 0.014711025
ground_curve = 0.008122505
[sub_resource type="Sky" id="Sky_41t38"]
sky_material = SubResource("ProceduralSkyMaterial_ien74")
@ -15,8 +15,7 @@ sky_material = SubResource("ProceduralSkyMaterial_ien74")
[sub_resource type="Environment" id="Environment_uqqn3"]
background_mode = 2
sky = SubResource("Sky_41t38")
ambient_light_source = 2
ambient_light_color = Color(0.4645986, 0.46674252, 0.5062494, 1)
ambient_light_source = 3
tonemap_mode = 2
glow_enabled = true
@ -29,10 +28,11 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
stretch = true
stretch_shrink = 3
[node name="SubViewport" type="SubViewport" parent="SubViewportContainer"]
handle_input_locally = false
size = Vector2i(1152, 648)
size = Vector2i(384, 216)
render_target_update_mode = 4
[node name="WorldEnvironment" type="WorldEnvironment" parent="SubViewportContainer/SubViewport"]
@ -40,9 +40,9 @@ environment = SubResource("Environment_uqqn3")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="SubViewportContainer/SubViewport"]
transform = Transform3D(-0.8660254, -0.43301278, 0.25, 0, 0.49999997, 0.86602545, -0.50000006, 0.75, -0.43301266, 0, 0, 0)
light_color = Color(1, 0.972, 0.93, 1)
shadow_enabled = true
shadow_blur = 0.281
directional_shadow_max_distance = 112.6
directional_shadow_pancake_size = 0.1
[node name="PlayerBody" parent="SubViewportContainer/SubViewport" instance=ExtResource("1_7vohb")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -20.417719, 1.340589, -8.014704)

File diff suppressed because one or more lines are too long

View file

@ -25,7 +25,7 @@ wall_min_slide_angle = 0.0
unique_name_in_owner = true
process_priority = -1
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.27450943, 0)
fov = 60.0
fov = 65.0
[node name="PlayerInteractor" type="PlayerInteractor" parent="PlayerCamera"]
shape = SubResource("SphereShape3D_eqqp1")

View file

@ -19,7 +19,6 @@ config/icon="res://icon.svg"
window/size/mode=3
window/size/borderless=true
window/vsync/vsync_mode=2
[editor]
@ -107,3 +106,10 @@ reload={
[physics]
3d/physics_engine="Jolt Physics"
[rendering]
lights_and_shadows/directional_shadow/size=8192
lights_and_shadows/directional_shadow/soft_shadow_filter_quality=4
lights_and_shadows/positional_shadow/soft_shadow_filter_quality=5
lights_and_shadows/positional_shadow/atlas_size=8192