In preparation to … something … can’t say yet what it’s going to be, I’ve spent quite a bit of time thinking about how to implement multiplayer games in a smart way.
Especially technologies of how to do things and how to handle communication between devices.
In particular, I have been looking at old examples of networking (null modem cable) because in those days machine power was very limited and information had to be very tight.
Today I looked at Sopwith , a duelling biplanes game and one of the earliest dos network peer-to-peer games ever published
What I found was very interesting indeed. The way Sopwith implements 2 player is as follows:
- The master sends the random seed key to the slave
- Both machines use the same seed
- In both machines, object #0 is the player, object #1 is the other player
- your own plane is controlled by your keypresses that are mirrored to the network
- remote player is controlled by a function that reads keys from the network
- because BOTH machines are using the same random steps and mirroring keypresses, NEITHER is the “authoritative master” but are running the state machine independently of each other
… allowing for a complex game with loads of objects to be played across network with very, very little traffic. Genius!
If you have ideas about multiplayer, continue the thread!