Prev: CCBD Up: Map Next: CCF5
CCBF: The landscape's graphic-offset table
Six bytes for each piece direction 0 to 8 (directions 7 to 13 use 0 to 6's rows, 14 and 15 rows 7 and 8: the code in landscape_step_loop that finds the row). The byte at the row plus twice the column's variety (0-2, from column_varieties), plus one if the fine scroll is not 0 (draw_landscape then starts the table one byte on), is the offset into the piece's graphic at which its POP blitter starts: so each column of a flat run can show one of three stretches of the ground's graphic.
graphic_offsets CCBF DEFB $00,$00,$0C,$0C,$18,$18
CCC5 DEFB $00,$00,$12,$1B,$24,$36
CCCB DEFB $00,$00,$09,$12,$12,$24
CCD1 DEFB $00,$00,$11,$22,$22,$44
CCD7 DEFB $00,$00,$12,$1B,$24,$36
CCDD DEFB $00,$00,$09,$12,$12,$24
CCE3 DEFB $00,$00,$11,$22,$22,$44
CCE9 DEFB $00,$00,$11,$22,$22,$44
CCEF DEFB $00,$00,$11,$22,$22,$44
Prev: CCBD Up: Map Next: CCF5