Alchemy

mapframe.h

games/tbs/include/mapframe.h on GitHub

Structures

MapScanline

struct MapScanline

One screen line's ground-plane terms on the world map: its width scale and distance, from which its affine parameters are built.

FieldDeclared as
scale, depths32 scale, depth
offsetX, offsetYs32 offsetX, offsetY
pa, pcs16 pa, pc

Used by WorldMap_BuildScanlineTable.

Line 13

MapAffineLine

struct MapAffineLine

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

FieldDeclared as
pa, pb, pc, pds16 pa, pb, pc, pd
x, ys32 x, y

Line 21

MapAffinePair

struct MapAffinePair

One screen line's affine parameters for BG2 and BG3.

FieldDeclared as
bg2, bg3struct MapAffineLine bg2, bg3

Used by TileMap_DrawRowsFromRam.

Line 27

MapFrameWork

struct MapFrameWork

The world map's frame work in heap slot 7: the scanline terms and two pages of per-line affine parameters, one built while the other is shown.

FieldDeclared as
scanlinesstruct MapScanline scanlines[160]
pagesstruct MapAffinePair pages[2][160]
unk3480u8 unk3480[4]

Line 33

On this page