A batch of sprites in world coordinates, for oamPlaceWorld(). More...
#include <sprite.h>
Public Attributes | |
| const u8 * | attr |
| u8 | count |
| u8 | first_id |
| const u8 * | order |
| u8 | size |
| const u8 * | tile |
| u8 * | visible |
| const s16 * | x |
| const s16 * | y |
A batch of sprites in world coordinates, for oamPlaceWorld().
Structure of arrays: one array per property, one element per sprite, which is what the 65816 indexes cheaply. The arrays may live in ROM, in plain RAM or in FAR RAM.
| const u8* OamWorldBatch::attr |
12: attribute byte (vhoopppc), as OAM_ATTR() builds it
| u8 OamWorldBatch::count |
21: number of sprites
| u8 OamWorldBatch::first_id |
20: OAM id of the first sprite of the batch
| const u8* OamWorldBatch::order |
24: optional, one byte per slot: slot i shows sprite order[i]. 0: slot i shows sprite i
| u8 OamWorldBatch::size |
22: width and height in pixels: 8, 16, 32 or 64
| const u8* OamWorldBatch::tile |
8: tile number, low byte
| u8* OamWorldBatch::visible |
16: out, one byte per sprite: 1 placed, 0 hidden. May be 0
| const s16* OamWorldBatch::x |
0: world x of each sprite's top-left corner
| const s16* OamWorldBatch::y |
4: world y