display-name: "Games/Jump n Bump"
meta: {"Working": "All images and sounds"}

if (file.name == "jumpbump.dat")
{
	struct file-header
	{
		unsigned32 file-count

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

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

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

if (file.name like "*.gob")
{
	unsigned16 image-count

	loop (image-count)
	{
		unsigned32 offset

		at offset
		{
			unsigned16 width
			unsigned16 height
			signed16 padding-left
			signed16 padding-top

			image
			{
				transparent-index: 0
				palette: "level.pcx"
				format: "I8"
			}
		}
	}
}

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