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

Engine Issues

There are a couple of issues that you might see when running the test example. The most serious issue is that even with a single point left the unit could still move onto a terrain tile that would cost two points. This is a serious problem because it ignores the movement point system that we have worked on until now. The second issue is less of an issue and more about the design of your war game; the example files still allow you to move your unit onto a terrain tile that already contains another unit. In your game, you may actually allow units to move on to the same terrain tile, and so you may not require any changes to the game.

Terrain Type Issue

We need to have an event that checks to see how many movement points a player ...

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