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

Scrolling

If you decide to have a war game played over a large number of tiles, then you will want the screen to scroll around the map. In the following example, you will move around the screen using the cursor keys.

When you create a game with MMF2, you set the application size, which then filters down into the frame sizes. So, in some of your previous examples, you had an application and a frame size of 800 × 600. If you change the frame size to something larger than the application size, you will still retain the 800 × 600 application window, which is displayed as a dotted outline around the window. Now you will also have an off-the-frame area that you can move around in. The off-the-frame area is the basis of scrolling games in MMF2, but ...

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