user682357
user682357

Reputation: 1

iPad multiplayer Game Synchronization

I'm developing a little 1-4 multiplayer jump & run for the iPad and have a problem regarding the synchronization. The game uses the Game-Center p2p Connection to connect the devices.

Now my problem is,

Here are my first approaches to sync the PCs (playable characters):

1)

Problem:

2)

Problem:

So what is the best approach to sync a little p2p jump & run game?

Thanks in advance. I appreciate your help.

Upvotes: 0

Views: 471

Answers (1)

FreeAsInBeer
FreeAsInBeer

Reputation: 12979

what data should i send?

Send everything that you would need to know in order to perform the neccesary game logic. Send new locations of enemies, updated health info, etc.

when should I send the data? Very frequently. You'll want fresh data when you update the screen so that the game appears to be very smooth. Ideally around 30 times per second. Some of the less important data may be able to be sent using the Unreliable method to cut down on network traffic.

Upvotes: 1

Related Questions