O'Reilly logo

Going to War: Creating Computer War Games by Jason Darby

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Fog of War

One further aspect that you might want to add to the maps is Fog of War, which has been used in many war games to simulate the potential aspects of poor weather, time of day, or of the environment masking the movements of soldiers on the battlefield. Using Fog of War, a unit might suddenly appear on the battlefield where you didn’t expect it, which adds a level of surprise. It also requires the player to have more tactical skills to take into account where the enemy unit might be hiding.

You can implement Fog of War in several ways, and I’ve put together a few ideas on how it can be implemented quite easily. The book has covered many ways to do all aspects of the code, so you will not need an exacting “walk-through” at this point. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required