Making a Single Player Game MultiPlayer

I have a game with four stations and four sets of guns. It is currently a solo game and you get the only shooting weapon to take out opponents pieces. I now want to make it multiplayer for up to four players for playing each other from up to four iDevices. I was thinking of using the Prime 31 plugs for iDevice networking, either bluetooth or wireless…not sure yet. Here are some thoughts and questions…

1.Cameras - Since I have a stationary cam above my guns for easy aiming into the arena the other three positions should have one also. How does one go about determining who is at what station and gets what camera view?

  1. Weapons and Shots fired - Seems if I figure the camera/station per user thing out this should fall right in there.

  2. Synchronsation - What do I need to know to keep all games synced with each other? If I have all the code in granular units such as, bullet brain->gun brain->firing manager->game manager or player brains->referee->GUI->game manager, do I manage these from one place (one iDevice running the game) and send messages out or do I manage individually per player piece/iDevice. Or conversely do I split up part of the functionality from another part.

That is probably enough to chew on to start. I am gonna think seven times and code after on this one. But…heh…I need to know how to start thinking about it.

TIA
BTH

This will probably depend on how you allow the players to find each other. If one iDevice is the master, then the others will need to connect
to it. You can choose the position of each player based on the order in which they arrive, maybe, or by allowing them to choose as they connect.

It’s probably easier to have the master device control the sync and AI and send update messages out to the others. Presumably, the AI is fast enough to control the non-player guns in the single player version, so you probably won’t need to distribute the load to the other CPUs.

Thanks for a roadmap. I can get there now.

Best
BTH