SPK Format

SPK files are the star backgrounds of the Space tileset in StarCraft I.

Layer count

Offset0x0000
Length2 bytes
DescriptionNumber of layers.
ValuesInteger value between 0 and 65535.

Image count for each layer

Image count

Offset0x0002
Length2 bytes
DescriptionNumber of images in the current layer.
ValuesInteger value between 0 and 65535.

Star data for each layer

Star X position

OffsetVariable
Length2 bytes
DescriptionX position of the current star.
ValuesInteger value between 0 and 65535.

Star Y position

OffsetVariable
Length2 bytes
DescriptionY position of the current star.
ValuesInteger value between 0 and 65535.

Bitmap offset

OffsetVariable
Length4 bytes
DescriptionOffset to the image data.
ValuesInteger value between 0 and 4294967295.

Bitmap data for each star in each layer

Bitmap width

OffsetVariable
Length2 bytes
DescriptionWidth of the image in pixels.
ValuesInteger value between 0 and 65535.

Bitmap height

OffsetVariable
Length2 bytes
DescriptionHeight of the image in pixels.
ValuesInteger value between 0 and 65535.

Bitmap data

OffsetVariable
Lengthbitmap width * bitmap height
DescriptionImage data. Each byte is an offset to a palette image.
ValuesEach byte is an index value between 0 and 255.