display-name: "Games/Skunny Lost In Space"
meta: {"Working": ["Fullscreen images"]}

if (file.name like "*.lid")
{
	file
	{
		fixed-string(0xE) name
		unsigned32 size
		unsigned32 offset
		skip-if size == 0
	} while (size != 0)
}

if (file.name like "*.pcx")
{
	interpret-as "image-PCX"
}

if (file.name like "*.pal")
{
	palette
	{
		format: "R6G6B6"
		size: 256
	}
}

palette-lookup: {
	"sm1.sbl": "sm1.pal",
	"sm2.sbl": "sm2.pal",
	["*"]: "sm1.pal"
}

if (file.name like ["m*.s??", "sm?.sbl"])
{
	unsigned16 width
	unsigned16 height
	unsigned16 count
	data(6) unkown

	loop(count)
	{
		image
		{
			palette: palette-lookup[file.name]
			format: "I8"
			transparent-index: 0
		}
	}
}
