[x] PlayerManager.gd should handle what is now in HeadlessServer.gd, just the joining and leaving of players to the server, and as an autoload. The files coudl replace each other.
[x] A signal should be set on PlayerManager.gd such that it fires whenever a player joins.
[x] RootController.gd_add_player_to_scene should use id of player from Godot server, not nakama (make sure to set somewhere in PlayerManager.gd as public thing
[x] PlayerMUXController.gd should track above signal, manage ids, and pop user into scene
[x] PlayerMUXController.gd should send initial game info to connecting users (game is already started after first player launches, essentially)
PlayerManager.gd
should handle what is now inHeadlessServer.gd
, just the joining and leaving of players to the server, and as an autoload. The files coudl replace each other.PlayerManager.gd
such that it fires whenever a player joins.RootController.gd
_add_player_to_scene
should use id of player from Godot server, not nakama (make sure to set somewhere inPlayerManager.gd
as public thingPlayerMUXController.gd
should track above signal, manage ids, and pop user into scenePlayerMUXController.gd
should send initial game info to connecting users (game is already started after first player launches, essentially)