Sprite

From NFBSP

Jump to: navigation, search

Sprites are simple images overlayed in a 3D environment.

Contents

File Structure

byte[4] Identifier; // Always "SPZ2"
Type Type;
Texture Texture; // PNG has depreciated the usefulness of this. 
byte Unknown;
byte ImageCount;
string[] Images = new string[ImageCount];
       // Images have a maximum length of 68 bytes where
       // at least the last byte is a null (00h) terminator

Type Enumerator

enum Type : byte {
  vp_parallel = 0,
  vp_parallel_upright = 1,
  oriented = 2,
  vp_parallel_oriented = 3, 
  facing_upright = 4 
}

Texture Enumerator

enum Texture : byte {
  normal = 0,     // same as additive in practice, full color, no blending or holes
  additive = 1,   // full color texture, to be blended with additive transparency
  indexalpha = 2, // full color, palette index is alpha
  alphatest = 3   // full color, 255 is a hole
}

See Also

Personal tools