mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2024-11-15 05:25:57 +00:00
Improve flags slightly
This commit is contained in:
parent
c1f49fd7bf
commit
4c66fd7a90
@ -6,6 +6,7 @@ onready var gameplay = preload("res://scenes/Gameplay.tscn" )
|
|||||||
onready var options = preload("res://scenes/Options.tscn" )
|
onready var options = preload("res://scenes/Options.tscn" )
|
||||||
onready var debug_menu = preload("res://scenes/Debug Menu.tscn" )
|
onready var debug_menu = preload("res://scenes/Debug Menu.tscn" )
|
||||||
|
|
||||||
|
#flags
|
||||||
var power_saving = true
|
var power_saving = true
|
||||||
var debug_enabled = true
|
var debug_enabled = true
|
||||||
var start_fullscreen = false
|
var start_fullscreen = false
|
||||||
@ -21,11 +22,9 @@ func _ready():
|
|||||||
_errno += MessageBus.connect("quit" , self, "_on_quit_request" )
|
_errno += MessageBus.connect("quit" , self, "_on_quit_request" )
|
||||||
_errno += MessageBus.connect("return_to_title", self, "_on_title_request" )
|
_errno += MessageBus.connect("return_to_title", self, "_on_title_request" )
|
||||||
# go fullscreen
|
# go fullscreen
|
||||||
if power_saving:
|
OS.low_processor_usage_mode = power_saving
|
||||||
OS.low_processor_usage_mode = true
|
OS.low_processor_usage_mode_sleep_usec = 6800
|
||||||
OS.low_processor_usage_mode_sleep_usec = 6800
|
OS.window_fullscreen = start_fullscreen
|
||||||
if start_fullscreen:
|
|
||||||
OS.window_fullscreen = true
|
|
||||||
if debug_enabled:
|
if debug_enabled:
|
||||||
add_child(debug_menu.instance())
|
add_child(debug_menu.instance())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user