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

Chapter 13. Maps

In the examples, you have kept the maps to a small area on the screen and at a low resolution, such as 800 × 600. In your own war games, you may want to have a really large battlefield. In this chapter, you will be looking at the size of the playing area, implementing a mini-map for larger games and when and why you implement Fog of War.

Note

Fog of War is a term used in many war games to describe the visibility of the battlefield. Rather than allowing the player to see all enemy units or the whole map, introducing Fog of War means the player can only see a certain distance around each unit.

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