Game Development Community

Turn-based gaming in Darkwind: War on Wheels

by Sam Redfern · 08/09/2006 (9:23 am) · 7 comments

Darkwind: War on Wheels is a turn-based car combat MMORPG set in a post-apocalyptic near future (it is currently the year 2060 in-game, in fact). Some of the most fundamental changes I have made to TGE have been related to turn-based gaming.

Firstly, it has allowed substantial efficiency improvements: clients don't do any physics simulation, for example (apart from limited simulation of their owner's ghost car-see below), and hence can smoothly animate far more vehicles and rigidshapes than would normally be possible with the TGE physics code. The game pauses while players submit their orders, then the server simulates one game-second, and distributes the positions of the vehicles at each of the 32 ticks that make up that second. This also gets around problems where the clientside simulation doesn't agree with serverside simulation (which appears as judder in standard TGE vehicle games). Because it is only handling one simulated second every 15 or 20 real-time seconds, the server can quite happily take a few seconds to do the work, if the environment is very busy.

Overall, the network load is vastly reduced, with non-essential packets such as camera control information not being sent (cameras are purely client-side), and with data about non-realtime objects such as vehicles only sent once per turn. The game's realtime objects are all clientside-only (skies, cameras, emitters). Realtime objects are processed as normal by the client, while non-realtime objects only have their processTick methods invoked when 'darkwind time' is running. Particle emitters are quite interesting because they can be either realtime (e.g. explosions) or non-realtime (e.g. damage smoke, wheel dust), and can also have their lifetimes determined by realtime (as normal) or by 'darkwind time' - so that they exist for a number of turns. Explosions often have both types of emitters - realtime fire and smoke when the explosion occurs, and then darkwind-time smoke that kicks in on the next game second. It's pretty cool spinning the camera around a frozen dustcloud coming from the wheels of a car, or a frozen plume of smoke or flames coming from its engine.

www.dark-wind.com/images/gg/dust-track.jpg
One of the other things that is related to turn-based gameplay is the 'ghost' car: as the player moves the GUI controls that set their orders, their car's anticipated position in one second's time is shown as a ghost. The accuracy of the ghost is related to their character's driving skill and state of health (a number of errors are introduced into the physics calculations that are applied to the ghost car). The ghost car sometimes allows far more impressive (and fun) driving than would be managed in a real-time game: races and deathraces on the very slippy tracks, for example, typically turn into powersliding bonanzas.

www.dark-wind.com/images/gg/darkwind-03.jpg
Turn based gaming also allows a level of tactical detail that's not possible in, say, RTSs - which often degrade into a 'fastest mouse clicker' competition. In Darkwind, you control the movement and control of several vehicles, each with potentially several characters in, and several guns that are individually targeted and fired. I'll say a bit about the detailed game rules, weapons, and critical hits in a later blog.

www.dark-wind.com/images/flamethrower1.png
www.dark-wind.com/images/flamethrower3.jpg
Darkwind is a turn-based online MMORPG with many original gameplay elements ... we're currently in open alpha so feel free to drop in! We now have Windows, Linux, and OSX clients up and running..

www.dark-wind.com

#1
08/09/2006 (9:31 am)
Looks fun!
#2
08/09/2006 (10:26 am)
Like first picture, color looks good as whole ( i mean all objects in that picture as a whole ) .
#3
08/09/2006 (10:41 am)
This looks very interesting. Opens a lot of fun ideas doesn't it. Good going!
#4
08/09/2006 (11:45 am)
I just cant imagine how this game plays, but I have to admit it sounds interesting just to see if it really works as a game.
#5
08/09/2006 (4:41 pm)
This sounds extremely interesting =) I'll be getting in on that as soon as I get home from work.
#6
08/10/2006 (1:39 am)
ah Interstate 82 with a mix of Carmageddon I hope. Looks fantastic.
Just get some more Difs in there and your sorted. Love the turn-based concept. I love anything turn based.
#7
08/10/2006 (1:56 am)
Phil- it's a bit different to your normal car game, but it does work. Think tactical rather than frantic. A boardgame, basically. The extra time during play also promotes chat/banter which is great.. hey, maybe Air Ace II will be turn based ;-)