How to sync the actions in a mutiplayer game?

Posted by Wheeler on Game Development See other posts from Game Development or by Wheeler
Published on 2012-11-27T16:00:24Z Indexed on 2012/11/27 17:21 UTC
Read the original article Hit count: 461

I connect the clients with UDP (its a peer to peer connection on a multicast network) and the clients are sending their positions in every frame (in WP7 it means the default 30 FPS) to each other. This game is kinda a pong game, and my problem is the next: whenever the opponent hits the ball the angle will not be the same on both mobiles. I think its because the latency (1 pixel difference can cause a different angle). So my question is: how can I sync the hitting event?

© Game Development or respective owner

Related posts about XNA

Related posts about networking