feat: support configurable game server address and port

* Launch game servers in headless mode
* Add configurable game address and port to GameData
* Pass dynamically assigned server ports to clients
* Update lobby defaults for `0.0.0.0:8080`
* Refactor server command-line argument handling
This commit is contained in:
2026-08-10 00:28:23 -05:00
parent 1eb057fefd
commit 7897462309
5 changed files with 30 additions and 7 deletions

View File

@@ -13,7 +13,10 @@ func _wait_for_child(id: String, port: String, mode: String) -> void:
var output := []
var exit_code := OS.execute(
"./game.sh", ["--", "server_" + port, "game", mode],
"./game.sh",
[
"--headless", "--", "server_" + port, "game", mode
],
output,
true
)