PVSnesLib  4.3.0
Documentation to code in C or ASM for the Nintendo SNES
t_metasprites Struct Reference

Dynamic metasprite definition (16 bytes) More...

#include <sprite.h>

Data Fields

u16 dummy1
 
u8 metsprattribute
 
u16 metsprend
 
u16 metsprframeid
 
u8 * metsprgraphics
 
s16 metsprofsx
 
s16 metsprofsy
 
u8 metsprtype
 

Detailed Description

Dynamic metasprite definition (16 bytes)

Examples
graphics/Sprites/DynamicEngineMetaSprite/DynamicEngineMetaSprite.c.

Field Documentation

◆ dummy1

u16 t_metasprites::dummy1

14..15 to be 16 aligned

◆ metsprattribute

u8 t_metasprites::metsprattribute

6 sprite attribute value (vhoopppc v : vertical flip h: horizontal flip o: priority bits p: palette num c : last byte of tile num)

◆ metsprend

u16 t_metasprites::metsprend

12..13 0xFFFF if it is the end of meta sprite definition

◆ metsprframeid

u16 t_metasprites::metsprframeid

4 frame index in graphic file of the sprite

◆ metsprgraphics

u8* t_metasprites::metsprgraphics

8..11 pointer to graphic file

◆ metsprofsx

s16 t_metasprites::metsprofsx

0 x offset of the current sprite in meta sprite

◆ metsprofsy

s16 t_metasprites::metsprofsy

2 y offset of the current sprite in meta sprite

◆ metsprtype

u8 t_metasprites::metsprtype

7 1,2 or 4 for 32x32, 16x16, 8x8 sprite type


The documentation for this struct was generated from the following file: