level
{
	name "Level 01"
	number 01

	bonus time 30 // Initial bonus time, in seconds

	world
	{
		visitable
		{
			min_max (-896,-1024,-1536) (895,1023,1279)		// Main hall
			min_max (896,0,-256) (1663,511,255)						// Exit room
		}
		
		not_visitable
		{
			min_max (128,-1024,768) (895,-769,1279)				// Start plateau
			min_max (-896,-1024,768) (127,-769,1023)			// Path to other wall
			min_max (-640,-1024,0) (-385,-769,767)				// Start path of S-shape leading towards middle
			min_max (-384,-1024,-512) (-129,-769,255)			// Second part of S-shape, now close to middle
			min_max (-640,-1024,-1024) (-385,-769,-513)		// 2x1 after first jump
			min_max (-896,-1024,-1536) (-129,-513,-1025)	// Block in opposite corner of start, one step up
			min_max (-128,-512,-1536) (383,-257,-1025)		// One more step up, sticking out from wall
			min_max (384,-256,-1536) (895,-1,-769)				// 3x2 in corner before bubble
			min_max (384,-256,-256) (895,-1,255)					// 2x2 sticking out under exit
		}
		
		exit // supports unlimited exits in the same level
		{
			min_max (1152,0,-256) (1663,511,255)
		}
		
		arrows
		{
			pos_dir (-896,-640,896,z-)
			pos_dir (-512,-384,-1536,x+)
			pos_dir (896,128,-1152,z+)
		}
		
		start
		{
			pos (512,-512,1024)
			angle (0,2560,0)  // (2048+512) Looking angle. 4096 = 360 degrees. Last angle (z) is unused
		}
	}

	lava
	{
		delay 50000	// ms per raise of 8 units
	}
	
	bubbles
	{
		stopping   // Spawn point for ascending bubbles
		{
			start (640,-1152,-512)
			end 896 // Bubbles will disappear when reaching this y-position
			delay 6000      // ms between spawning new bubble
			maxBubbles 3    // maximum bubbles existing at the same time from this spawn
		}
	}

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