Dynamic sprite state structure (16 bytes, PVSnesLib compatible) More...
#include <sprite.h>
Public Attributes | |
| u8 | _pad |
| u16 | _reserved1 |
| u16 | _reserved2 |
| u8 | oamattribute |
| u16 | oamframeid |
| u16 | oamgfxaddr |
| u8 | oamgfxbank |
| u8 | oamrefresh |
| s16 | oamx |
| s16 | oamy |
Dynamic sprite state structure (16 bytes, PVSnesLib compatible)
Used by the dynamic sprite engine to track per-sprite state including position, animation frame, and graphics pointer for VRAM uploads.
| u8 t_sprites::_pad |
11: Padding byte
| u16 t_sprites::_reserved1 |
12-13: Padding for 16-byte alignment
| u16 t_sprites::_reserved2 |
14-15: Padding for 16-byte alignment
| u8 t_sprites::oamattribute |
6: Attributes (vhoopppc) - flip, priority, palette, tile high bit
| u16 t_sprites::oamframeid |
4-5: Frame index in sprite sheet
| u16 t_sprites::oamgfxaddr |
8-9: Low 16-bit address of graphics data
| u8 t_sprites::oamgfxbank |
10: Bank byte of graphics address
| u8 t_sprites::oamrefresh |
7: Set to 1 to request VRAM upload of graphics
| s16 t_sprites::oamx |
0-1: X position on screen
| s16 t_sprites::oamy |
2-3: Y position on screen