Renamed globals to autoloads for clarity

This commit is contained in:
2026-08-29 18:32:09 -05:00
parent 9a067711c7
commit c0e240db83
8 changed files with 52 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
class_name GameCore extends Node
static var instance: GameCore
@onready var game_server: GameServer = $game_server
@@ -27,7 +28,15 @@ class_name GameCore extends Node
#
func _init() -> void:
instance = self
func _ready() -> void:
instance.run()
func run() -> void:
_load_scene()
_parse_args()
@@ -93,7 +102,7 @@ func server_(arg: String) -> void:
func host_(arg: String) -> void:
var game_mode = arg.split("_")[1]
var match_name = OS.get_cmdline_user_args()[-1]
push_warning(get_path())
while not $scene/lobby_screen.client.lobby_fully_connected:
await get_tree().process_frame