Sign in to follow this  
datalurkur

Event Handler Question

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this