; Tile IDs index matching 8-byte bitmap patterns and screen RAM colour pairs. ; Pixel pairs: 00 brown, 01 high nibble, 10 low nibble, 11 reserved for people. .enum LAND GRASS TREE STONE WATER WATER_N WATER_S WATER_W WATER_E WATER_NW WATER_NE WATER_SW WATER_SE ROAD_H ROAD_V ROAD_NE ROAD_NW ROAD_SE ROAD_SW ROAD_X TILE_COUNT .endenum .segment "RODATA" tile_patterns: .byte $00,$00,$00,$00,$00,$00,$00,$00 ; land .byte $44,$11,$44,$11,$44,$11,$44,$11 ; grass .byte $00,$14,$55,$55,$55,$14,$08,$08 ; tree, brown trunk in low nibble .byte $14,$55,$45,$55,$51,$55,$54,$10 ; stone .byte $55,$55,$55,$55,$55,$55,$55,$55 ; open water .byte $00,$00,$04,$51,$55,$55,$55,$55 ; north shore .byte $55,$55,$55,$55,$15,$40,$00,$00 ; south shore .byte $15,$15,$05,$15,$15,$15,$05,$15 ; west shore .byte $54,$54,$50,$54,$54,$54,$50,$54 ; east shore .byte $00,$00,$04,$11,$15,$15,$05,$15 ; northwest shore .byte $00,$00,$10,$50,$54,$54,$50,$54 ; northeast shore .byte $15,$15,$05,$15,$15,$04,$00,$00 ; southwest shore .byte $54,$54,$50,$54,$54,$10,$00,$00 ; southeast shore .byte $00,$00,$00,$55,$55,$00,$00,$00 ; east-west road .byte $14,$14,$14,$14,$14,$14,$14,$14 ; north-south road .byte $14,$14,$14,$15,$15,$00,$00,$00 ; north-east bend .byte $14,$14,$14,$54,$54,$00,$00,$00 ; north-west bend .byte $00,$00,$00,$15,$15,$14,$14,$14 ; south-east bend .byte $00,$00,$00,$54,$54,$14,$14,$14 ; south-west bend .byte $14,$14,$14,$55,$55,$14,$14,$14 ; crossing .assert * - tile_patterns = TILE_COUNT * 8, error, "Tile bitmap table size" .assert TILE_COUNT <= 32, error, "Tile bitmap offsets must fit in X" tile_colors: .byte $99, $59, $59, $C9 .repeat 9 .byte $69 .endrepeat .repeat 7 .byte $09 .endrepeat .assert * - tile_colors = TILE_COUNT, error, "Tile colour table size"