Sprite areas have a fixed size-header followed by a varying amount of data.
Sprite area headers are 16 bytes long, with the following format.
Word | Content |
---|---|
0 | Size of sprite area |
1 | Number of sprites in area |
2 | Offset to first sprite |
3 | Offset to first free word in area (i.e. after last sprite) |
The sprite area size is measured in bytes, and includes the size of the header.
All offsets are in bytes, relative to the start of the sprite area.
To create a valid empty sprite area, the header should be filled in as follows:
Word | Content |
---|---|
0 | Size of sprite area buffer |
1 | 0 |
2 | 16 |
3 | 16 |