display-name: ["Games/Fuzzy's World of Miniature Space Golf"]
meta: {"Working": ["Packed file extraction", "Graphics"], "Thanks to": "Frenkel Smeijers"}

if (file.name like "*.res")
{
	unsigned16 file-count
	unsigned8 unknown

	file [file-count]
	{
		fixed-string(12) name
		unsigned32 offset
		unsigned32 size
		data(2) unknown
	}
}

if (file.name like "*.txt")
{
	loop while (file.remaining-bytes > 0)
	{
		pascal-string(unsigned8) this-string
		text
		{
			string-data: this-string + "\r\n"
		}
	}
}

if (file.name like "*.smp")
{
	sound
	{
		samples-per-second: 16000
		sound-signed: true
		bits-per-sample: 8
		channels: 1
	}
}

if (file.name like ["*.ani", "*.mpf", "*.spf"])
{
	unsigned8 frames
	unsigned8 unknown
	frames = frames + 1
	unsigned16 unknown

	/*transparent-index: 0xFF

	if (package-name == "xatax.res")
	{
		if (file.name like ["*.ani", "title.spf"])
		{
		}
		else
		{
			transparent-index = 0x0
		}
	}*/

	palette
	{
		size: 256
		format: "R6G6B6"
	}

	fuzzy-skip: true

	compressed [file.remaining-bytes] "pixelpainter-spr"
	{
		image
		{
			format: "I8"
			width: 320
			height: 200 * frames
		}
	}
}