Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Top Down Game Networking  (Read 2078 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass

« JGO Spiffy Duke »

Medals: 319
Projects: 25
Exp: 22 years

Coder, Trainee Pixel Artist, Game Reviewer

« Posted 2003-09-28 12:44:38 »

So, having moved on from AstroPrime I'm looking at another game idea I considered just before starting on prime.

Its a top down game, where each player is a person. I've just started at looking at the networking and realised that all the stuff I did on prime makes no sense when changes in direction are instant.

In prime, due to momentum I could extrapolate the players position based on their velocity etc.. However, in this game I tried extrapolation and found that the my players were constantly jumping back since between my updates they'd taken their finger off the the forward key.

Am I missing something or does this sort of thing have to be done with direct updates?


Offline Jeff

JGO Coder

Got any cats?

« Reply #1 - Posted 2003-10-30 04:38:48 »

Where changes in direction can be instantaneous and exact position is required a certain amount of warping when latency spikes hit is inevtiable.  You'll see it in any game like this (ie EQ, NWN, etc.)  

Some of it can be hidden by allowing some degree of discontinuity between players and cheating the velocity of "catching up".  (ie You see yourself move up to the dragon and then attack.  I see you stand there for a beat, then run incredibly fast at the dragon and attack.)  The GetAmped game hides it by making you "skid" when making a turn until the turn is acknowledged by the other players.

But in general you will either need warps or to do some clever deisgn to try to hide said warps.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!
Pages: [1]
  ignore  |  Print  

EgonOlsen (73 views)
2018-06-10 19:43:48

EgonOlsen (54 views)
2018-06-10 19:43:44

EgonOlsen (73 views)
2018-06-10 19:43:20

DesertCoockie (253 views)
2018-05-13 18:23:11

nelsongames (154 views)
2018-04-24 18:15:36

nelsongames (153 views)
2018-04-24 18:14:32

ivj94 (895 views)
2018-03-24 14:47:39

ivj94 (156 views)
2018-03-24 14:46:31

ivj94 (807 views)
2018-03-24 14:43:53

Solater (171 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!