Header
	title   = "Jumalauta - DARK OLYMPICS"
	music   = "data/olympics_theme.ogg"
	bpm     = 90
End

Resources
	001 = image( "data/images/001.jpg" )
	002 = image( "data/images/002.jpg" )
	003 = image( "data/images/003.jpg" )
	004 = image( "data/images/004.jpg" )
	005 = image( "data/images/005.jpg" )
	006 = image( "data/images/006.jpg" )
	007 = image( "data/images/007.jpg" )
	008 = image( "data/images/008.jpg" )
	009 = image( "data/images/009.jpg" )
	010 = image( "data/images/010.jpg" )
	011 = image( "data/images/011.jpg" )
	012 = image( "data/images/012.jpg" )
	013 = image( "data/images/013.jpg" )
	014 = image( "data/images/014.jpg" )
	015 = image( "data/images/015.jpg" )
	016 = image( "data/images/016.jpg" )
	017 = image( "data/images/017.jpg" )
End

Objects
	layer1 = layer( 001, 003, 005, 007, 009, 011, 013, 015 )
	layer2 = layer( 002, 004, 006, 008, 010, 012, 014, 016, 017 )
End

Script
	#0.0 run( intro )
	#16.0 run( crossfade, 1 )
	#24.0 run( crossfade, 2 )
	#32.0 run( crossfade, 3 )

	#44.1 layer2.zoom = 150 to 175 in #4.0
	#46.0 layer2.brightness = 1 to 0 in #2.0

	#48.0 run( fadeOut, 4 )
	#49.0 run( fadeOut, 5 )
	#50.0 run( fadeOut, 6 )
	#51.0 run( fadeOutb, 7 )
	#52.0 run( fadeOut2, 4 )
	#53.0 run( fadeOut2, 5 )
	#54.0 run( fadeOut2, 6 )
	#55.0 run( fadeOut2, 7 )

	#56.0 run( outro )
End

Sub:intro
	#0.0 enable( layer1, layer2 )
	#0.0 layer1.blending = 0	// off
	#0.0 layer2.blending = 2	// screen

	#0.0 layer1.show = 0
	#0.0 layer2.brightness = 0
	#0.0 layer1.brightness = 0 to 1 in #8.0
	#0.0 layer1.zoom = 100 to 150 in #16.0
	#8.0 layer1.brightness = 1 to 0 in #8.0
	#8.0 layer2.brightness = 0 to 1 in #8.0
	#8.0 layer2.zoom = 100 to 200 in #12.0
End

Sub:crossfade
	#0.1 layer1.show = %0
	#0.1 layer2.brightness = 1 to 0 in #4.0
	#0.1 layer1.brightness = 0 to 1 in #0.2
	#0.1 layer1.zoom = 100 to 125 in #8.0

	#4.1 layer2.show = %0
	#4.1 layer1.brightness = 1 to 0 in #4.0
	#4.1 layer2.brightness = 0 to 1 in #0.2
	#4.1 layer2.zoom = 100 to 150 in #8.0
End

Sub:fadeOut
	#0.0 layer1.show = %0
	#0.0 layer1.zoom = 100
	#0.0 layer1.brightness = 1 to 0 in #0.2
	#0.1 layer2.show = %0
	#0.1 layer2.brightness = 1 to 0.5 in #1.0
	#0.1 layer2.zoom = 100 to 110 in #1.0
End

Sub:fadeOutb
	#0.0 layer1.show = %0
	#0.0 layer1.zoom = 100
	#0.0 layer1.brightness = 1 to 0 in #0.2
	#0.1 layer2.show = %0
	#0.1 layer2.brightness = 1 to 0.5 in #0.3
	#0.1 layer2.zoom = 100 to 110 in #0.3
End

Sub:fadeOut2
	#0.0 layer2.show = %0
	#0.0 layer2.zoom = 100
	#0.0 layer2.brightness = 1 to 0 in #0.2
	#0.1 layer1.show = %0
	#0.1 layer1.brightness = 1 to 0.5 in #1.0
	#0.1 layer1.zoom = 100 to 110 in #1.0
End

Sub:outro
	#0.1 layer1.zoom = 110 to 190 in #8.0
	#0.1 layer1.brightness = 0.5 to 0 in #8.0
	#4.0 layer2.show = 8
	#4.0 layer2.brightness = 0 to 1 in #4.0
	#4.0 layer2.zoom = 90 to 100 in #4.0
End

// end of file
