Game Palette: Checkerboard map demo

This browser does not support HTML5 canvas; it is required to use the Game Palette library

Use WASD or the arrow keys to walk around the map. You can walk on the grass, but the rocks and the water are in the way.

This demo illustrates the basics of creating a checkerboard map. In addition to the image file that contains the tiles (see tileset.png), this program also includes the tileset data (see tileset.js) and the map itself (see map.js.) Each kind of tile in the tileset data has a passable property of the game's own, which the program looks up to decide where the walker can go. The camera follows him loosely, and stops at the edges of the map.