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

Moving Your Units Onscreen

Now that you have a simple example of how you can check the number of movement points a unit has, the next stage is to make a unit move on screen. When working out unit movement, you first have to think about the map tiles size and how far your unit will need to move across them to stay in the center of each tile.

You can see in Figure 6.15 an example of the working out for our map tiles and unit sizes.

Figure 6.15. The tile and the unit size.

The unit can move in one of six directions from its original starting position. The six directions are the maximum number of directions it can move in. Some directions may be ...

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