Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


The online tennis problem


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Schtiv   Members   -  Reputation: 104

Like
0Likes
Like

Posted 05 January 2013 - 07:19 PM

I call it the 'tennis problem'.

Imagine a networked tennis game, the ball is hit from one person to another, assume that the path of the ball is sent and not the location of the ball, this allows for predictability, because we know where and when the ball is going to land, and therefore we can have a nice synced game, we can just speed up/ slow down the velocity of the ball to do this. However consider when the two players are very close to each other (right next to the net), in LAN circumstances this wouldn't be a problem, but suppose we had a 1 second delay in our connection, the ball that player A hits will have traveled passed player B by the time player B received the message that player A had hit the ball. What can you do in this situation? The only thing I can think of is teleport the ball back to the correct position and risk ruining all immersion, surely there is a better way.

Hopefully you were able to follow the example, I'd like to hear your thoughts on this 'tennis problem' and what strategies could be used to overcome it.

Thanks

Happy Holidays/ Happy New Year



Sponsor:

#2 hplus0603   Moderators   -  Reputation: 5519

Like
1Likes
Like

Posted 06 January 2013 - 12:10 AM

If your game designer comes up with a game design that requires faster turn-around time than the latency between the players, you smack him on the knuckles with a ruler and say "Bad designer, not considering the requirements!"
enum Bool { True, False, FileNotFound };




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS