Sign in to follow this  
dongzhe

three question on server side

Recommended Posts

I am writing a tank game 1. when to check the client input? should client input get check by engine as long as the input received? 2. what does the engine should provide? just collision checking or both checking and compute the movement? eg: if client to move tank to (x,y) and send this to server. what info should server reply? 3. when should i send the reply? should send immediately after checking or should I send all together with certain intervals? what is on my mind now now in my game client side I have timer (30) to produce each frame. no server side i have same timer (30) I will keep all the input during the 30 millisencond and check them all together when time out and send the reply all together after checking. is that all right? I feel it is not right......

Share this post


Link to post
Share on other sites
I'm pretty sure the Forum FAQ answers your questions. There is no one, right answer -- the answer to most of these questions depends on what your particular situation and needs are, because there are many ways to do networked gaming, each with its own benefits and draw-backs.

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