dynamic menu and menu music

This commit is contained in:
Persephone Bubblegum-Holiday 2025-08-18 21:51:12 -07:00
parent 1f13716d42
commit a9efa66b09
18 changed files with 386 additions and 41 deletions

View file

@ -48,7 +48,7 @@ func _unhandled_input(event: InputEvent) -> void:
if (interact):
if event is InputEventMouseMotion:
look_dir = event.relative * 0.001
if mouse_captured: _rotate_camera()
if mouse_captured: _rotate_camera(GlobalVariables.mouse_sens)
if event.is_action_pressed(&"fullscreen"):
if (!DisplayServer.window_get_mode() == DisplayServer.WINDOW_MODE_FULLSCREEN):
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
@ -142,7 +142,7 @@ func _physics_process(delta: float) -> void:
if ($Camera/Flashlight.visible): $FlashlightOnSFX.play()
else: $FlashlightOffSFX.play()
if mouse_captured: _handle_joypad_camera_rotation(delta)
if mouse_captured: _handle_joypad_camera_rotation(delta, GlobalVariables.mouse_sens)
velocity = _walk(delta) + _gravity(delta) + _jump(delta)
move_and_slide()
if (self.position.y < -20):