O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

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

Creating Backgrounds from Tiles

The real power of a scrolling game comes from a technique called tiling. Tiling is a process in which there really is no background, just an array of tiles that make up the background as it is displayed. In other words, it is a virtual background and it takes up very little memory compared to a full bitmapped background (such as the one in ScrollScreen). Take a look at Figure 15.4 for an example.

Figure 15.4. A bitmap image constructed of tiles.

Can you count the number of tiles used to construct the background in Figure 15.4? Eighteen tiles make up this image, actually. Imagine that—an entire game screen built ...

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