Prev: 805F Up: Map Next: 8153
8063: River bank shape profiles (15 profiles × 16 bytes = 240 bytes).
Defines how the river banks curve. Each profile has 16 bytes, one per scanline within a terrain fragment. Each byte is the X offset for the left bank edge at that line. Used by render_terrain_fragment (terrain) and render_island_line (islands).
Profile Type Description
0 Normal Standard river section
1 Normal Alternate river shape
2 Special Pre-bridge approach (bit 7 set)
3 Special Bridge structure (bit 7 set)
4 Special Post-bridge transition
5-10 Normal Various river widths
11 Narrow River narrows significantly
12 Wide River widens significantly
13-14 Normal Additional variations
When bit 7 of a profile byte is set, render_terrain_fragment jumps to special bridge/road rendering at handle_special_terrain_fragment. Left edge X = profile_byte + row_offset - 16.
data_terrain_profiles 8063 DEFB $02,$04,$04,$06,$08,$08,$0A,$0A Profile 0: standard river
806B DEFB $0C,$0A,$0A,$08,$06,$04,$02,$00
8073 DEFB $80,$80,$80,$80,$80,$80,$80,$80 Profile 1: pre-bridge (special, bit 7 set)
807B DEFB $E0,$E0,$E0,$E0,$E0,$E0,$E0,$E0
8083 DEFB $C0,$C0,$C0,$C0,$C0,$C0,$C0,$F0 Profile 2: bridge structure (special, bit 7 set)
808B DEFB $F0,$C0,$C0,$C0,$C0,$C0,$C0,$C0
8093 DEFB $E0,$E0,$E0,$E0,$E0,$E0,$E0,$E0 Profile 3: post-bridge transition
809B DEFB $80,$80,$80,$80,$80,$80,$80,$80
80A3 DEFB $00,$00,$02,$02,$04,$04,$06,$06 Profile 4
80AB DEFB $08,$08,$06,$06,$04,$04,$06,$06
80B3 DEFB $06,$06,$06,$06,$04,$04,$04,$04 Profile 5
80BB DEFB $02,$02,$02,$02,$00,$00,$00,$00
80C3 DEFB $00,$00,$02,$02,$04,$04,$06,$06 Profile 6
80CB DEFB $08,$08,$0A,$0A,$0C,$0C,$0E,$0E
80D3 DEFB $0E,$0E,$0C,$0A,$0A,$08,$08,$06 Profile 7
80DB DEFB $06,$08,$08,$06,$04,$02,$02,$00
80E3 DEFB $00,$00,$02,$04,$04,$06,$08,$08 Profile 8
80EB DEFB $0A,$0C,$0E,$0E,$10,$12,$14,$16
80F3 DEFB $16,$16,$14,$12,$10,$10,$0E,$0C Profile 9
80FB DEFB $0A,$08,$0A,$0A,$08,$06,$04,$02
8103 DEFB $02,$02,$04,$04,$06,$06,$04,$04 Profile 10
810B DEFB $02,$02,$00,$00,$02,$02,$02,$02
8113 DEFB $00,$02,$04,$06,$0A,$0C,$10,$12 Profile 11: river narrows
811B DEFB $16,$18,$1C,$1E,$22,$24,$26,$28
8123 DEFB $28,$26,$24,$22,$1E,$1C,$18,$16 Profile 12: river widens
812B DEFB $12,$10,$0C,$0A,$06,$04,$02,$00
8133 DEFB $00,$02,$00,$00,$02,$02,$04,$02 Profile 13
813B DEFB $02,$00,$00,$02,$02,$04,$02,$00
8143 DEFB $00,$02,$04,$02,$02,$04,$04,$02 Profile 14
814B DEFB $00,$00,$00,$02,$02,$02,$00,$00
Prev: 805F Up: Map Next: 8153