by coderdude · 15y ago · 0 comments
However, I don't see how a light-cycles game could use any kind of prediction or lag comp. Since players can change direction instantaneously and at arbitrary times, there is nothing that can be predicted. And any kind of lag comp would appear as obvious breaches of the game rules.
There is a lag to tell the server when you want to move and a lag when the server tells the other player where you moved, so the lag compensation is for the server to guess where you thought the other player was when you made your move. This is used extensively in Counter-Strike, and I think it has its uses here.
Lag comp takes advantage of the independence of your gaming experience and your opponent's. It effectively hides inconsistencies in places you aren't paying attention to, like where your opponent is aiming. In light cycles, your actions and consequences are much more tightly coupled to those of your opponents. There is nowhere to hide the inconsistency.
http://www.virginmedia.com/images/tron2-431x300.jpg
Which appears to be kind of like snakes/nibbles then I could see you requiring some of the techniques the article describes. Since players are mostly moving in a single direction for a period of time you could extrapolate their movements by continuing their motion in that single direction until the server is made otherwise aware of where the player decided to move. Then you can reset the player back to the position they were at when they changed direction and then continue them along that path.
However, for when the action gets close-up and quick, where perhaps the two players are twitching back and forth trying to avoid or ensnare each other then yes I can see how lag compensation will be necessary so that the server can accurately figure out where each player thought the other player was when they made their move.
Here are two articles that I think will help you, and they helped me when I was working at this problem:
http://www.gamasutra.com/view/feature/3230/dead_reckoning_la...
EDIT:
the game's not particularly exciting but i'd imagine that being on the same canvas avoiding the trail of potentially thousands of players (plus your own) could be cool
EDIT2:
also if it was possible to add 3D to it (the ability to turn in the Z axis) could be pretty awesome
Hmm.. what would the trails look like? A line is pretty easy to avoid in three dimensions.
Maybe rectangles could be extruded from the line segment between the last two turning points.
Or you somehow control two light cycles and extrude the line between them.
EDIT: Wait a moment, it wasn't GLTron, it was Armegatron
EDIT 2: See http://wiki.armagetronad.net/index.php?title=Lag