OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
MetaspriteStyle Struct Reference

What stays the same from one frame of a metasprite to the next. More...

#include <sprite.h>

Public Attributes

u8 basePalette
u16 baseTile
u8 height
u8 pieceSize
u8 size
u8 width

Detailed Description

What stays the same from one frame of a metasprite to the next.

Declare one per character, usually static const; the frame, the position and the flip are given at each call.

Member Data Documentation

◆ basePalette

u8 MetaspriteStyle::basePalette

Palette (0-7) for the items that name none

◆ baseTile

u16 MetaspriteStyle::baseTile

Tile number added to each item's tile offset

◆ height

u8 MetaspriteStyle::height

Height of the whole metasprite in pixels. Read only when flipping

◆ pieceSize

u8 MetaspriteStyle::pieceSize

Pixels of one piece (8, 16, 32 or 64): the size size selects in your OBJSEL mode. Read only when flipping

◆ size

u8 MetaspriteStyle::size

OBJ_SMALL or OBJ_LARGE, for every piece

◆ width

u8 MetaspriteStyle::width

Width of the whole metasprite in pixels. Read only when flipping


The documentation for this struct was generated from the following file:
  • /home/runner/work/opensnes/opensnes/lib/include/snes/sprite.h