From 5b35174ffab42f0331f1a6527ef6bbab7a3dbdcb Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 21 Dec 2024 14:15:11 +0100 Subject: next commit --- Game/Client.gd | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Game/Client.gd') diff --git a/Game/Client.gd b/Game/Client.gd index 6e08a58..0af4e9d 100644 --- a/Game/Client.gd +++ b/Game/Client.gd @@ -33,10 +33,13 @@ func _notification(what: int) -> void: func initialize_stage(stage: Stage): current_stage = stage + + if not selection: + selection = preload("res://Game/Selection/SelectionManager.tscn").instantiate() + add_child(selection) func ready_stage(_stage: Stage): - selection = preload("res://Game/Selection/SelectionManager.tscn").instantiate() - add_child(selection) + pass func place_tower(tower: Tower): @@ -118,7 +121,7 @@ func get_config() -> ConfigFile: config.load("user://config") if not FileAccess.file_exists("user://config"): - config.set_value("general", "host_default_port", 1234) + config.set_value("general", "host_default_port", 8911) config.set_value("general", "game_lobby_server_base_url", "http://localhost:8910") config.save("user://config") -- cgit v1.2.3