Solved

What is the best way to design a multiplayer game syncronization for 2 to 4 players?

Posted on 2007-11-21
6
345 Views
Last Modified: 2010-04-07
What is the best way to design a multiplayer game syncronization for 2 to 4 players?

I am develoving a 2d game, and i  need to developed the multyplayer system and i dont have idea tabout how to create the game syncronization for 2-4 players.

what is the best method to create a server-clients syncronization system?

any help with describinb the steps with only using winsockets.?
0
Comment
Question by:becoolnike
  • 2
  • 2
6 Comments
 
LVL 11

Expert Comment

by:jgordos
ID: 20361912
You don't really give any background.

Do you know how these four players will play the game?

Is it a fat client? Browser based?  Network?  Internet?

Do you know how to send and receive messages over the internet? Over the LAN?

Is it real-time?  Is it turn based?  

These things all matter.

-john
0
 

Author Comment

by:becoolnike
ID: 20365468
I have tcp and udp knowloge. i have coded app using winsocks.
it is a fat client.
it is over lan.
it is a 2d fighting game.
it is real time but all happens in the same screee.

i dont have expericence about syncronization events.


0
 

Author Comment

by:becoolnike
ID: 20365539
I was thinking a system where the server proccess all the events and physics and onlly send all the screen modications to the clients. the clients will only send the input data and recieve the screen updates but they wont procece any physics or events.

But i dont know if this is the best method.

0
 
LVL 11

Accepted Solution

by:
jgordos earned 500 total points
ID: 20367363
that's about your only choice, really.

and, when you ask about sync, the really important part is that you have only one source of key information, such as the score, or the health of each player.

That information can be sent out periodically, on a heartbeat.

And, if you're keying the animation so it plays "right" between the two players, then you need to include a few timers... time for animation, time for the "fight clock", time since you last heard from each client... etc.

But yes, you're thinking the right way.

If you're on a lan, just use UDP .. it's faster, and if you do miss a packet for some reason, you'll just pick it up again on the next heartbeat.

-j
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20658033
Forced accept.

Computer101
EE Admin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Texture Maps and Performance 5 528
Export from Blender to ZPrint with textures 4 736
Sudoku - eraseable white board 2 276
count7 challenge 12 101
What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now