Welcome to the Creatures Wiki! Log in and join the community.
S16 files
Jump to navigation
Jump to search
S16 files were the image files of C2. Many a developer's hour was spent editing them in an image editor and converting their well-made bitmaps into S16 files for use in-game.
Contents
Overview
An S16 file consists of three distinct parts:
- A header, containing information about the file
- Image headers, one for each image
- The image data
File header
Image header
Then comes a series of 8 byte image headers, one for each sprite in the file:
- uint32: Offset to beginning of first line in image data
- uint16: Image width in pixels
- uint16: Image height in pixels
Image data
The image data for each sprite simply consists of the specified number (i.e. image width * image height) of uint16 colour pixels.