Jump to content
  • Advertisement
Sign in to follow this  
datalurkur

Event Handler Question

This topic is 3411 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm writing an isometric strategy game, and want to use some simple physics to allow the units on the game grid to bump into each other/walls/etc. The question is, what's the best way of communicating between server and client the positions of the units when physics things happen? Example: All physics is done server-side. When the client wants to move a unit, the client sends an event to the server requesting movement. The server then does physics stuff, moves the unit, then replies to the client with an event detailing the new position of the unit. Is this reasonable for normal bandwidth? If not, what's a better solution? I'm kind of stumped as to where to begin without knowledge of what's expected of the event handler.

Share this post


Link to post
Share on other sites
Advertisement
That is the model of systems like Second Life, or the C4 game engine. It's fine up to a reasonable number of moving entities, but breaks down for RTS games with large numbers of units. For an alternative version, check out the "1,500 archers" article in the Forum FAQ.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!