level
{
	name "Level 11"
	number 11

	bonus time 100 // Initial bonus time, in seconds

	world
	{
		visitable
		{
			min_max (640,-1152,-1920) (2175,-129,127)			// Start room
			min_max (-2176,-1408,128) (2175,1407,1407)		// Main hall
			min_max (-2176,128,-896) (2175,1407,127)			// Main roof
			min_max (-1920,128,1408) (-897,895,1919)			// Exit
		}
		
		not_visitable
		{
			// In start room
			min_max (640,-1152,-1920) (1151,-641,-1153)		// Zink
			
			min_max (1920,-1152,-1920) (2175,-897,-641)		// JFF
			min_max (1408,-1152,-1408) (1919,-897,-897)		// FF
			
			min_max (1920,-1152,-384) (2175,-897,127)		// J
			min_max (1408,-1152,-384) (1919,-897,-129)	// J
			
			
			// Other
			min_max (-384,-1408,896) (127,-641,1407)			// Brick pile
			min_max (384,-1408,896) (1151,-385,1407)			// Garage
			min_max (1152,-1408,128) (2175,-129,1407)			// Anna Heij
			min_max (-2176,128,-896) (1407,383,-385)			// Top of main roof
		}
		
		exit // supports unlimited exits in the same level
		{
			min_max (-1920,128,1664) (-897,895,1919)
		}
		
		arrows
		{
			pos_dir (1280,-1024,128,x-)
			pos_dir (640,-1024,0,z+)
			pos_dir (768,-1024,896,y+)
			pos_dir (512,-256,1408,x+)
			pos_dir (2176,0,768,z-)
			pos_dir (1792,256,-896,x-)
			pos_dir (-2176,512,-512,z+)
			pos_dir (-2176,256,0,z+)
		}
		
		start
		{
			pos (896,-512,-1408)
			angle (0,2048,0)  // Looking angle. 4096 = 360 degrees. Last angle (z) is unused
		}
	}

	lava
	{
		// start pos is now automatic
		delay 35000	// ms per raise of 8 units
	}
	
	bubbles
	{
		ascending
		{
			start (768,-1664,512)
			end 1152
			delay 8000      // ms
			maxBubbles 3
		}
		stopping
		{
			start (-1408,-1664,384)
			end 1152
			delay 8000      // ms
			maxBubbles 3
		}
	}
	
	bird
	{
		pos (-1920,256,-128)
		pos (1408,256,-128)
	}
	bird
	{
		pos (1408,512,-640)
		pos (-1920,512,-640)
	}
	
	bonus_items
	{
		parachutes 1
		{
			pos (1792,256,-512)	// Above start room
		}
		lavastopper (1536,-768,-1152)
	}
	
	emeralds 13
	{
		required 11
		pos (1664,-1024,-1664)
		pos (1920,-768,-1024)
		pos (1920,-768,-256)
		pos (896,-512,-1664)
		pos (-128,-512,1152)
		pos (768,-256,1152)
		pos (1536,0,512)
		pos (1152,512,-640)
		pos (896,256,-128)
		pos (-128,512,-640)
		pos (-640,256,-128)
		pos (-1408,512,-640)
		pos (-1664,256,-128)
	}
}