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

Further improvements to overall system stability and other minor adjustments have been made to enhance the user exprience.

This commit is contained in:
2021-10-21 13:37:41 -05:00
parent 7f0b58de70
commit ecaa22771a
4 changed files with 43 additions and 4 deletions

View File

@@ -23,9 +23,18 @@ func _ready():
gameplay = preload("res://scenes/Gameplay.tscn")
options = preload("res://scenes/Options.tscn")
debug_menu = preload("res://scenes/Debug Menu.tscn")
# go fullscreen
OS.window_fullscreen = true
if debug_enabled:
add_child(debug_menu.instance())
# Process global keybinds
func _input(event):
if event.is_action_pressed("ui_fullscreen"):
# toggle_fullscreen
OS.window_fullscreen = !OS.window_fullscreen
# Ensure the scene doesn't become empty
func _process(_delta):
# Make sure there's something running

View File

@@ -0,0 +1,16 @@
extends Node
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass