###############################################################
##
## Main Script -- Yabadababoo!
##
##	Written by Brioche & Colas / Aspirine
##
###############################################################

<
 the play command sequence the execution of an Effect resource during
 a specified time range [begin,end]

 syntax: play symbol begin end time_offset speed depth
>

###############################################################
##
## Execute loading scripts
##
###############################################################

#clear screen
execute FillColor32bpp { } 
waitframe

execute Interpreter { filename = "scripts/stdlib.txt" }
execute Interpreter { filename = "scripts/loading.txt" }

###############################################################
##
## Start the music please
##
###############################################################

create Mp3Player music {
	filename = "musics/mix.mp3"
	#time_offset = const 100
	#order = const 220
}

create Interpreter demo { 
	filename = "scripts/demo.txt" 
	framerate = const 60  	
}

play music 0 264 0 1 1
play demo 0 264 0 1 1

wait 264
end