Re:Synchronous RTS Engines and a Tale of Desyncs
by wlievens on Monday July 11, 2011 @09:22AM
(#2750534)
Did you write Comet Busters!? That's awesome! I played that game so many times I can still hear the sound effects in my head over a decade later. I really loved the version where you could blow the other players up.
Kudos to you :)
Everyone had to exchange their inputs in one frame and then evaluate them in the next, so you were always a frame behind (1/24 of a second or so, or maybe 1/12). All math was fixed point which made it a bit easier. There was no resync; the game would just end if the checksums didn't line up, so lots of bugs were discovered this way :)
Lots of time was spent figuring out how to handle start-of-game, since either player could initiate and we had to agree on a common screen size since it affected game play.