I'm trying to create a drop in / out version of the tank tutorial. I'm currently thinking that I can instantiate 30 playable characters (the game would be max 30 players) and keep them all hidden / inactive.
My idea is that when someone logs in with peerID 25, they take over the playerCharacter in my array of player characters. Any unused playerCharacters remain hidden and don't send any network data. Is this a mad way of going about it?
How does the Peer ID work? I'm assuming in my 30 player max game, the peerID will always be a value between 1 and 30. If someone drops out, say PeerID 5, I'm assuming that peerID is then available to anyone who joins again? Would peerID ever exceed 30 and crash the game?
Hope this makes sense! Thanks very much