Skip to Content
The Alchemy Project

struct WORLD_MAP_AFFINE_LINE

One screen line's affine parameters for a background, as the HBlank DMA copies them into the BG2 or BG3 registers.

Declared in world_map_affine.h.

Fields

NameDescription
Sint16pa, pb, pc, pd , pb, pc, pdthe matrix, 8.8 fixed point as BG2PA to BG2PD take it
Sint32x, y , ythe reference point, 20.8 fixed point as BG2X and BG2Y take it

Description

One screen line's affine parameters for a background, as the HBlank DMA copies them into the BG2 or BG3 registers.

struct WORLD_MAP_AFFINE_LINE

Referenced by fdWorldMapUpdateAffineLines().

Definition at line 25 of file world_map_affine.h.

Fields in detail

pa, pb, pc, pd

Sint16 pa, pb, pc, pd

the matrix, 8.8 fixed point as BG2PA to BG2PD take it

x, y

Sint32 x, y

the reference point, 20.8 fixed point as BG2X and BG2Y take it