Difference between revisions of "S16 files"
ScoobyGambit (talk | contribs) |
ScoobyGambit (talk | contribs) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | .s16 is the extension used in '''S16 files''', i.e. [[Creatures 2]] [[sprite|image]] files (although they can still also be used in C3/DS). These files actually store several images, so most [[COB]]s only need one s16. They can be viewed and edited with [[Creature Labs]]' [[SpriteBuilder]] or the [[BoBCoB|BoBCoB Sprite Editor]], and previewed in Windows using [[GreenReaper|GreenReaper's]] [[Sprite Thumbnail Viewer]]. | + | .s16 is the extension used in '''S16 files''', i.e. [[Creatures 2]] [[sprite|image]] files (although they can still also be used in C3/DS). These files actually store several images, so most [[COB]]s only need one s16. They can be viewed and edited with [[Creature Labs]]' [[Sprite Workshop]], [[SpriteBuilder]] or the [[BoBCoB|BoBCoB Sprite Editor]], and previewed in Windows using [[GreenReaper|GreenReaper's]] [[Sprite Thumbnail Viewer]]. |
__NOTOC__ | __NOTOC__ | ||
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. | 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. | ||
Line 30: | Line 30: | ||
*[[SPR files]] | *[[SPR files]] | ||
*[[C16 files]] | *[[C16 files]] | ||
+ | *[[:Category:S16 Files|S16 Files hosted on the Creatures Wiki]] | ||
==External links== | ==External links== | ||
*[http://www.double.co.nz/creatures/creatures2/s16format.htm Great explanation and an example of how to work with s16 and 555/565] at [[The Creatures Developer Resource]] | *[http://www.double.co.nz/creatures/creatures2/s16format.htm Great explanation and an example of how to work with s16 and 555/565] at [[The Creatures Developer Resource]] | ||
− | |||
[[Category:File formats]] | [[Category:File formats]] | ||
+ | [[Category:Sprites]] |
Revision as of 19:43, 8 April 2020
.s16 is the extension used in S16 files, i.e. Creatures 2 image files (although they can still also be used in C3/DS). These files actually store several images, so most COBs only need one s16. They can be viewed and edited with Creature Labs' Sprite Workshop, SpriteBuilder or the BoBCoB Sprite Editor, and previewed in Windows using GreenReaper's Sprite Thumbnail Viewer.
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.
You can find the file naming convention here.
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.