summaryrefslogtreecommitdiff
path: root/Game/Client.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-12-21 14:15:11 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-12-21 14:15:11 +0100
commit5b35174ffab42f0331f1a6527ef6bbab7a3dbdcb (patch)
tree071530353b02f45fffc26aa4b0f43f7b901b3046 /Game/Client.gd
parenta854a1862a30632e49520f6e1e11333d5c8ff241 (diff)
next commitHEADmain
Diffstat (limited to 'Game/Client.gd')
-rw-r--r--Game/Client.gd9
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")