Skip to Content
The Alchemy Project

include/field/world_map_affine.h

The world map's scanlines and affine lines.

Included by field_internal.h and world_map_lines.c.

Structures

NameDescription
structWORLD_MAP_SCANLINEOne screen line's ground-plane terms on the world map: its width scale and distance, from which its affine parameters are built (fdWorldMapBuildScanlineTable, when the pitch changes).
structWORLD_MAP_AFFINE_LINEOne screen line's affine parameters for a background, as the HBlank DMA copies them into the BG2 or BG3 registers, BG2PA to BG2Y.
structWORLD_MAP_AFFINE_PAIROne screen line's affine parameters for BG2 and BG3.
structWORLD_MAP_AFFINE_STATEThe world map's affine state in HEAP_SLOT_WORLD_MAP_AFFINE: the scanline terms and two pages of per-line affine parameters, one built while the other is shown.

Description

The world map's scanlines and affine lines.