level
{
	name "Level 15"
	number 15

	bonus time 100 // Bonus time in seconds

	world
	{
		visitable
		{
			min_max (-768,-1920,-1152) (1535,1919,1151)		// Main room
			min_max (0,896,1152) (767,1407,1407)					// Start room
			min_max (-1280,640,-384) (-769,1151,383)			// Exit room
		}
		
		not_visitable
		{
			min_max (-256,640,896) (1023,895,1151)				// Start plateau
			min_max (-768,-640,-128) (-513,-385,639)			// 3x1 path under exit
			min_max (-768,-640,-640) (-513,-385,-385)			// 1x1 path under exit
			min_max (-256,-128,-1152) (511,127,-897)			// 3x1 path opposite to start
			min_max (512,128,-1152) (1023,383,-897)				// 2x1 path opposite to start
			min_max (1280,384,-640) (1535,639,639)				// 5x1 path left of start
			
			// The club, layer by layer starting closest to start and from left to right
			min_max (0,-128,384) (255,383,639)
			min_max (256,-384,384) (511,639,639)
			min_max (512,128,384) (767,383,639)
			
			min_max (0,-640,128) (255,639,383)
			min_max (256,-1152,128) (511,895,383)
			min_max (512,-128,128) (767,895,383)
			
			min_max (-256,-640,-128) (-1,639,127)
			min_max (0,-1408,-128) (255,895,127)
			min_max (256,-1920,-128) (511,1151,127)
			min_max (512,-1152,-128) (767,1151,127)
			min_max (768,-384,-128) (1023,895,127)
			
			min_max (0,-1152,-384) (255,639,-129)
			min_max (256,-1408,-384) (511,1151,-129)
			min_max (512,-384,-384) (767,895,-129)
			min_max (768,128,-384) (1023,639,-129)
			
			min_max (0,-384,-640) (255,127,-385)
			min_max (256,-896,-640) (511,895,-385)
			min_max (512,-128,-640) (767,639,-385)
		}
		
		exit // supports unlimited exits in the same level
		{
			min_max (-1280,640,-384) (-769,1151,383)
		}
		
		arrows
		{
		}
		
		start
		{
			pos (384,1024,1024)
			angle (0,2048,0)  // Looking angle. 4096 = 360 degrees. Last angle (z) is unused
		}
	}
	
	lava
	{
		// start pos is now automatic
		delay 10000	// ms per raise
	}
	
	bubbles
	{
		descending
		{
			start (1280,-2148,896)
			end 1792
			delay 12000      // ms
			maxBubbles 3
		}
		ascending
		{
			start (1280,-2148,-896)
			end 1792
			delay 12000      // ms
			firstdelay 3000
			maxBubbles 3
		}
		descending
		{
			start (-512,-2148,-896)
			end 1792
			delay 12000      // ms
			firstdelay 6000
			maxBubbles 3
		}
		ascending
		{
			start (-512,-2148,896)
			end 1792
			delay 12000      // ms
			firstdelay 9000
			maxBubbles 3
		}
	}
	
	bonus_items
	{
		parachutes 5
		{
			pos (-128,1024,1024)
		//	pos (128,1024,1024)
			pos (640,1024,1024)
			pos (896,1024,1024)
		//	pos (384,1024,1280)
		}
	}
	
	emeralds 17
	{
		required 15
		// At start plateau
		pos (128,1024,1024)
		//pos (640,1024,1280)
		
		// On path under exit
		pos (-640,-256,512)
		pos (-640,-256,-640)
		
		// On path opposite to start
		pos (-128,256,-1024)
		pos (1024,512,-1024)
		
		// On path left of start
		pos (1408,768,128)
		pos (1408,768,-384)
		
		// On club
		pos (128,512,512)
		pos (640,512,512)
		pos (384,1024,256)
		pos (-128,768,0)
		pos (128,1024,0)
		pos (640,1280,0)
		pos (896,1024,0)
		pos (384,1280,-256)
		pos (128,256,-512)	// Isolated a bit lower
		pos (640,768,-512)
	}
}