Skip to Content
The Alchemy Project

struct BATTLE_AFFINE

The battle background's affine parameters and reference point, copied whole to the BG2PA registers.

Declared in battle_camera.h.

Fields

NameDescription
Uint16pa, pb, pc, pd , pb, pc, pdBG2PA to BG2PD, 8.8 fixed point; btCameraSetRange writes a plain zoom (pb and pc 0, pa and pd one over the scale).
Sint32x, y , yBG2X and BG2Y, 8.8 fixed-point pixels

Description

The battle background's affine parameters and reference point, copied whole to the BG2PA registers.

struct BATTLE_AFFINE

Referenced by btCameraSetRange().

Definition at line 111 of file battle_camera.h.

Fields in detail

pa, pb, pc, pd

Uint16 pa, pb, pc, pd

BG2PA to BG2PD, 8.8 fixed point; btCameraSetRange writes a plain zoom (pb and pc 0, pa and pd one over the scale).

x, y

Sint32 x, y

BG2X and BG2Y, 8.8 fixed-point pixels