Prev: B7EF Up: Map Next: B848
B828: Horizon scroll rate table
32 bytes, not 16 words: every user indexes it a byte at a time. mhc_scroll_horizon and sh_not_flat_road load $B827 and add a 1-based curvature magnitude; B9BD adds a byte index built from the curvature and the speed; only B864 reads two adjacent entries, and it takes them high byte first (B from the lower address, C from the higher), which is not how a DEFW would be stored.
The first eight bytes are 255 divided by 1 to 8, so the value is the number of ticks between horizon steps and the scroll rate rises with the curvature.
breaks/crashes road rendering if messed with
horizon_table B828 DEFB $FF,$7F,$55,$3F,$33,$2A,$24,$1F
B830 DEFB $04,$01,$03,$01,$02,$01,$01,$01
B838 DEFB $03,$01,$02,$01,$01,$01,$01,$02
B840 DEFB $03,$01,$02,$01,$01,$01,$01,$02
Prev: B7EF Up: Map Next: B848