HTML and CSS Reference
In-Depth Information
Scrolling a Tile-Based World
Oneoftheadvantagesofusingatile-basedworldisthatitcanbevirtuallyanysizewewantit
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
created with tiles.
The power comes from the use of the simple two-dimensional arrays we use to hold the game
pretty simple. Here's a short review of the process of painting the screen from a tile-based
grid.