Sprite image

From LBA File Information
Jump to navigation Jump to search
Sprite image
Extension

LSP

Occurence

LBA1 & LBA2

Colour
Programs supporting this format
References

Find entries of this type

Sprite files contain small images that are shown in the game as overlays over the screen. They can be for as actors (called sprite actors), bullets, and other moving objects.

Specification:[edit]

Sprite format specification, based on LBA1.

open question: where's the number of frames in a sprite defined?

Abstract:
the sprite format works similar to the brick format, but there are multiple entries of run-length encoded data in one file. For the run-length algorithm see BRK-file specification.

Detail:
*)***File Structure***
May the sprite file contain n frames:

0. dword: offset to the 0. frame (from file start)
1. dword: offset to the 1. frame (from file start)
...
n. dword: offset to the n. frame (from file start)

the frames are structured in the following way:
0. byte : offset X
1. byte : offset Y
2. byte : width
3. byte : height
following bytes : run-length encoded data

Information provided by: El Muerte and Omni