From 4c66fd7a906fb091561ae47204b2aa0ea46cd23b Mon Sep 17 00:00:00 2001 From: John Breaux Date: Mon, 8 Nov 2021 13:41:55 -0600 Subject: [PATCH] Improve flags slightly --- godot_ship/script/game/Main.gd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/godot_ship/script/game/Main.gd b/godot_ship/script/game/Main.gd index b27016b..86d5867 100644 --- a/godot_ship/script/game/Main.gd +++ b/godot_ship/script/game/Main.gd @@ -6,6 +6,7 @@ onready var gameplay = preload("res://scenes/Gameplay.tscn" ) onready var options = preload("res://scenes/Options.tscn" ) onready var debug_menu = preload("res://scenes/Debug Menu.tscn" ) +#flags var power_saving = true var debug_enabled = true var start_fullscreen = false @@ -21,11 +22,9 @@ func _ready(): _errno += MessageBus.connect("quit" , self, "_on_quit_request" ) _errno += MessageBus.connect("return_to_title", self, "_on_title_request" ) # go fullscreen - if power_saving: - OS.low_processor_usage_mode = true - OS.low_processor_usage_mode_sleep_usec = 6800 - if start_fullscreen: - OS.window_fullscreen = true + OS.low_processor_usage_mode = power_saving + OS.low_processor_usage_mode_sleep_usec = 6800 + OS.window_fullscreen = start_fullscreen if debug_enabled: add_child(debug_menu.instance())