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

Basic Enemy Movement

Many of the configurations you place on the players’ movement involve the automated computer-controlled movement. Computer units are controlled using the same rules that you implemented for the player.

In this example, you have a set of four enemy units to move along a predefined path. Even though this exercise doesn’t use computer intelligence, it does allow you to configure many of the options that the unit needs before creating a more complicated example.

For basic enemy movement, you need to do the following:

  • Message: Create a message to advise the player that the enemy is moving. It is important to let players know when something is happening that they cannot control.

  • Trigger Computer Movement: You need to consider when ...

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