|
PVSnesLib
4.5.0
Documentation to code in C or ASM for the Nintendo SNES
|
#include <sprite.h>
Metasprite sub-item structure
| dx | delta X coordinate of the sprite relative to the metasprite origin (0,0) |
| dy | delta Y coordinate of the sprite relative to the metasprite origin (0,0) |
| dtile | start tile relative to the metasprites own set of tiles |
| props | property Flags (palette and priority, flip x/y will be added later) |
Metasprites are built from multiple metasprite_t items (one for each sub-sprite) and a pool of tiles they reference. If a metasprite has multiple frames then each frame will be built from some number of metasprite_t items (which may vary based on how many sprites are required for that particular frame).
A metasprite frame is terminated with a {metasprite_end} entry.