newnoiseanand / omgd-headless-test

0 stars 0 forks source link

Choose to migrate or scrap existing code #1

Closed newnoiseanand closed 9 months ago

newnoiseanand commented 9 months ago

existing code maps to Nakama stuff; it may be a pattern worth repeating, or it may be easier to scrap

if migrating it, things could work as so:

  1. PlayerManager.gd becomes "automatic" game lobby, popping in players as they join via a signal, holding list of players, etc (could alter from autoload to scene and have a button join the game instead of "automatic" to block against max players)
  2. PlayerMUXController.gd becomes the game scene itself, listening to above signal for new players, might scrap RootController in that case
  3. PlayerController.gd and CharacterController.gd would retain similar functionality or perhaps be merged into one
newnoiseanand commented 9 months ago

choosing to migrate existing code rather than start fresh, it makes a decent enough scaffold.