diff options
Diffstat (limited to 'Game/Client.gd')
-rw-r--r-- | Game/Client.gd | 9 |
1 files changed, 6 insertions, 3 deletions
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") |