Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
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 1430 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass

« JGO Spiffy Duke »


Medals: 195
Projects: 24
Exp: 18 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?

Kev

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!

http://wiki.java.net/bin/view/Games/JeffFAQ
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xFryIx (62 views)
2014-11-13 12:34:49

digdugdiggy (41 views)
2014-11-12 21:11:50

digdugdiggy (36 views)
2014-11-12 21:10:15

digdugdiggy (30 views)
2014-11-12 21:09:33

kovacsa (53 views)
2014-11-07 19:57:14

TehJavaDev (56 views)
2014-11-03 22:04:50

BurntPizza (55 views)
2014-11-03 18:54:52

moogie (70 views)
2014-11-03 06:22:04

CopyableCougar4 (71 views)
2014-11-01 23:36:41

DarkCart (156 views)
2014-11-01 14:51:03
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org 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‑gaming.org
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!