Skip to Content
The Alchemy Project

struct OAM_DATA

Attributes zero through two copied to OAM, plus the halfword after them.

Declared in window_sprite.h.

Fields

NameDescription
Uint16y : 8screen pixels
Uint16affineMode : 2OBJ_AFFINE, and OBJ_DOUBLE_SIZE to turn it without clipping
Uint16objectMode : 2an SPR_MODE
Uint16mosaic : 1
Uint16fullColor : 1256 colours instead of a 16-colour palette
Uint16shape : 2square, wide or tall, as the OBJ_SIZE_ macros
Uint16x : 9screen pixels
Uint16matrix : 5affine matrix; for a plain sprite, OBJ_HFLIP and OBJ_VFLIP bits
Uint16size : 2with shape, the sprite's size
Uint16index : 10first sprite tile in VRAM
Uint16priority : 20 to 3: drawn over BGs of the same or a larger priority number
Uint16palette : 416-colour palette
Uint16high

Description

Attributes zero through two copied to OAM, plus the halfword after them.

struct OAM_DATA

Definition at line 48 of file window_sprite.h.

Fields in detail

y

Uint16 y : 8

screen pixels

affineMode

Uint16 affineMode : 2

OBJ_AFFINE, and OBJ_DOUBLE_SIZE to turn it without clipping

objectMode

Uint16 objectMode : 2

an SPR_MODE

mosaic

Uint16 mosaic : 1

fullColor

Uint16 fullColor : 1

256 colours instead of a 16-colour palette

shape

Uint16 shape : 2

square, wide or tall, as the OBJ_SIZE_ macros

x

Uint16 x : 9

screen pixels

matrix

Uint16 matrix : 5

affine matrix; for a plain sprite, OBJ_HFLIP and OBJ_VFLIP bits

size

Uint16 size : 2

with shape, the sprite's size

index

Uint16 index : 10

first sprite tile in VRAM

priority

Uint16 priority : 2

0 to 3: drawn over BGs of the same or a larger priority number

palette

Uint16 palette : 4

16-colour palette

high

Uint16 high