HTML and CSS Reference
In-Depth Information
Scrolling a Tile-Based World
to be. Although some memory and processor limitations (especially onmobile devices) might
cause problems when trying to scroll or pan over an image that is much larger than the canvas
size, as we did in Chapter 4 , there is virtually no limit to the size of a game world that can be
created with tiles.
The power comes from the use of the simple two-dimensional arrays we use to hold the game
world. As we examined in Chapter 8 , the concept of painting the game screen with tiles is
pretty simple. Here's a short review of the process of painting the screen from a tile-based
Search WWH ::

Custom Search