settings, small fixes

This commit is contained in:
Daniel Kauss Serna 2026-02-15 16:17:51 +01:00
parent b12c193636
commit e08e3ebb13
174 changed files with 997 additions and 1040 deletions

View file

@ -2,8 +2,9 @@ extends Node
var master_volume: float = 1.0
var fullscreen: bool = false
var vsync : bool = false
var vsync : bool = true
var max_fps: int = 60
var glow = false
func apply_volume():
var bus_index := AudioServer.get_bus_index("Master")
@ -11,6 +12,9 @@ func apply_volume():
bus_index,
linear_to_db(master_volume)
)
func apply_bloom():
EventBus.change_glow.emit(glow)
func apply_fullscreen():
DisplayServer.window_set_mode(
@ -18,7 +22,7 @@ func apply_fullscreen():
else DisplayServer.WINDOW_MODE_WINDOWED
)
if not fullscreen:
get_window().size = Vector2i(480*3, 270*3);
get_window().size = Vector2i(640*2, 360*2);
func apply_vsync():
DisplayServer.window_set_vsync_mode(