level
{
	name "Level 02"
	number 02

	bonus time 40 // Initial bonus time, in seconds

	world
	{
		visitable
		{
			min_max (-640,-768,-1024) (639,1279,1279)		// Main hall
			min_max (-640,-256,-1792) (-129,255,-1025)	// Exit room
		}
		
		not_visitable
		{
			min_max (-640,-768,512) (-129,-257,1279)		// Start plateau
			min_max (-128,-768,768) (639,-257,1279)			// Path to the left of start
			min_max (128,0,-256) (639,511,255)					// Rock on wall
			min_max (-640,-768,-1024) (639,-257,-769)		// Path to exit
		}
		
		exit // supports unlimited exits in the same level
		{
			min_max (-640,-256,-1792) (-129,255,-1281)
		}
		
		arrows
		{
			pos_dir (640,-128,896,z-)
			pos_dir (256,128,256,y+)
			pos_dir (256,384,-1024,y-)
			pos_dir (-640,-128,-896,z-)
		}
		
		start
		{
			pos (-384,-128,1024)
			angle (0,2048,0)  // Looking angle. 4096 = 360 degrees. Last angle (z) is unused
		}
	}

	lava
	{
		delay 30000	// ms per raise of 8 units
	}
	
	bubbles
	{
		ascending   // Spawn point for ascending bubbles
		{
			start (384,-1024,512)
			end 1152				// Bubbles will disappear when reaching this y-position
			delay 8000      // ms between spawning new bubble
			firstdelay 4000	// ms until spawning first bubble
			maxBubbles 2    // maximum bubbles existing at the same time from this spawn
		}
		
		descending    // Spawn point for descending bubbles
		{
			start (384,-1024,-512)
			end 1152				// Bubbles will disappear when reaching this y-position
			delay 8000      // ms between spawning new bubble
			maxBubbles 2    // maximum bubbles existing at the same time from this spawn
		}
	}

	emeralds 9
	{
		required 8
		pos (-256,-128,640)		// 0
		pos (0,-128,896)			// 1
		pos (512,-128,896)		// 2
		pos (384,64,512)			// 3
		pos (384,640,128)			// 4
		pos (384,640,-128)		// 5
		pos (384,384,-512)		// 6
		pos (256,-128,-896)		// 7
		pos (-384,-128,-896)	// 8
	}
}