![]() |
Map |
The map of the town is stored at TownMap. It is 16 cells wide and 16 cells high. Each cell holds a code from 0 to 25. Code 0 is empty ground, which shows as the black streets in the picture, and code 1 is the edge of the town. The other codes are the buildings.
The picture is drawn from those cells in the same way as DrawCellWithWalls, with the view not turned round. The colour of each wall is taken from the lowest two bits of the code: bright green, cyan, yellow or white. The picture is four times the size of the Spectrum pixels: drag to move, and use the mouse wheel or pinch to zoom.
Drag to move. Scroll or pinch to zoom.