![]() |
Map |
The map of the town is stored at TownMap. It is 10 cells wide and 10 cells high. Each cell holds a code from 00 to 19. Code 00 is empty ground, which shows as the black streets in the picture, and code 01 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.