1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2025-02-04 12:28:35 +00:00

Improve debug and Options somewhat

This commit is contained in:
2021-10-22 01:53:04 -05:00
parent ecaa22771a
commit 909773a65b
7 changed files with 278 additions and 98 deletions

View File

@@ -7,6 +7,7 @@ var options
var debug_menu
var debug_enabled = true
var start_fullscreen = false
# Called when the node enters the scene tree for the first time.
func _ready():
@@ -24,7 +25,8 @@ func _ready():
options = preload("res://scenes/Options.tscn")
debug_menu = preload("res://scenes/Debug Menu.tscn")
# go fullscreen
OS.window_fullscreen = true
if start_fullscreen:
OS.window_fullscreen = true
if debug_enabled:
add_child(debug_menu.instance())