display-name: "Games/Zombie Wars"
meta: {"Working": "Some images", "Issues": "Some colour problems"}

if (file.name like "*.sb0")
{
	data(11) unknown

	file
	{
		dirty-string(12) name
		unsigned32 offset
		unsigned32 size
	} while (file.position < first-offset)
}

if (file.name like "*.dlg")
{
	text
}

if (file.name like "*.ico")
{
	data(2) unknown
	loop while (file.remaining-bytes > 0)
	{
		data(4) unknown
		unsigned16 width
		unsigned16 height

		image
		{
			format: "I8"
		}
	}
}

if ((file.name like ["*.raw", "?j.?", "?j.??", "?h.?", "?h.??", "intro*"]) and !(file.name == "intro.avi"))
{
	data(8) unknown
	unsigned16be width
	unsigned16be height

	data(20) unknown

	palette
	{
		size: 256
		format: "R8G8B8"
	}

	image
	{
		format: "I8"
	}
}

if (file.name == "xlat.bin")
{
	image
	{
		format: "I8"
		width: 256
		height: 256
	}
}

if (file.name like "*.spr" and !(file.name like "_*"))
{
	folder: "Sprites"

	data(6) unknown

	loop while (file.remaining-bytes > 0)
	{
		unsigned16 width
		unsigned16 height

		image
		{
			format: "I8"
		}

		data(4) unknown
	}	
}

if (file.name like "*.h95")
{
	folder: "Levels"
}