Sprite areas have a fixed size-header followed by an optional extension area, and then a number of sprites.
Sprite area headers are 16 bytes long, with the following format.
Offset | Content |
---|---|
+0 | Size of sprite area |
+4 | Number of sprites in area |
+8 | Offset to first sprite (16+) |
+12 | Offset to first free word in area (i.e. after last sprite) |
+16 | Optional Sprite Extension Area (if offset to first > 16) |
The sprite area size is measured in bytes including the 16 byte header, and must be a multiple of four.
All offsets are in bytes, relative to the start of the sprite area, and are always word aligned.
To create a valid empty sprite area, the header should be filled in as follows:
Offset | Content |
---|---|
+0 | Size of sprite area buffer |
+4 | 0 |
+8 | 16 |
+12 | 16 |