newnoiseanand / omgd-headless-test

0 stars 0 forks source link

make game lobby code - might be best to happen automatically and "pop" players into the game ala existing demo #2

Closed newnoiseanand closed 11 months ago

newnoiseanand commented 11 months ago
  1. [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.
  2. [x] A signal should be set on PlayerManager.gd such that it fires whenever a player joins.
  3. [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
  4. [x] PlayerMUXController.gd should track above signal, manage ids, and pop user into scene
  5. [x] PlayerMUXController.gd should send initial game info to connecting users (game is already started after first player launches, essentially)