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

Additional Concepts

Now that you have a good idea of how to implement computer movement using code that you have already used in previous examples, it is time to think about what other things you might want to implement in your game. We have listed them here for completeness, along with some ideas for how to implement them if you feel that you would like them in your own game.

Line of Sight

Line of sight is very common in Real Time Strategy games, but it can also be useful in war games. Line of sight is the method of checking to see if one object has a clear view of another object. This is important in war games if you want to implement long range attacks. If a unit is behind a mountain, it does not have line of sight and would not be able ...

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