# Lets start by loading some audio
LoadAudioTrack MainTrack "Data\brong11.ogg"
CreateFont MainFont "Data\Topaz.spritefont"
CreateFont SmallFont "Data\TopazSmall.spritefont"
AddProperty Camera TestCamera Root


CreateModel DickBotModel "Data\Model\dickbot-modelv2.x3d"
CreateMaterial MT_DickBot Data\Mats\BasicMaterial.txt
CreateTexture DickBotTexture "Data\Model\dickbot-modelv2.png"
BindTexture MT_DickBot Texture DickBotTexture


# Setup the scenes
Include "Data\Scripts\Scene1Setup.txt"
Include "Data\Scripts\Scene2Setup.txt"
Include "Data\Scripts\Scene3Setup.txt"
Include "Data\Scripts\Scene4Setup.txt"
Include "Data\Scripts\Scene5Setup.txt"
Include "Data\Scripts\Scene6Setup.txt"
Include "Data\Scripts\Scene7Setup.txt"
Include "Data\Scripts\Scene8Setup.txt"
Include "Data\Scripts\Scene9Setup.txt"
Include "Data\Scripts\Scene10Setup.txt"
Include "Data\Scripts\Scene11Setup.txt"
Include "Data\Scripts\Scene12Setup.txt"
Include "Data\Scripts\Scene13Setup.txt"
Include "Data\Scripts\Scene14Setup.txt"
Include "Data\Scripts\Scene15Setup.txt"
Include "Data\Scripts\Scene16Setup.txt"

# Play the music
PlayAudioTrack MainTrack

# Start Full Colour
FadeUp 0.5
# Run the scenes
Include "Data\Scripts\Scene1Run.txt"
DelayUntil Music 10
Include "Data\Scripts\Scene2Run.txt"
DelayUntil Music 26
Include "Data\Scripts\Scene3Run.txt"
DelayUntil Music 39.5
Include "Data\Scripts\Scene4Run.txt"
DelayUntil Music 53
Include "Data\Scripts\Scene5Run.txt"
DelayUntil Music 65
Include "Data\Scripts\Scene6Run.txt"
DelayUntil Music 77
Include "Data\Scripts\Scene7Run.txt"
DelayUntil Music 83
Include "Data\Scripts\Scene8Run.txt"
DelayUntil Music 111
Include "Data\Scripts\Scene9Run.txt"
#SetMusicTime 130
DelayUntil Music 133
Include "Data\Scripts\Scene10Run.txt"
DelayUntil Music 135
Include "Data\Scripts\Scene11Run.txt"
DelayUntil Music 138
Include "Data\Scripts\Scene12Run.txt"
DelayUntil Music 151
Include "Data\Scripts\Scene13Run.txt"
DelayUntil Music 174
Include "Data\Scripts\Scene14Run.txt"
DelayUntil Music 191
Include "Data\Scripts\Scene15Run.txt"
DelayUntil Music 197
Include "Data\Scripts\Scene16Run.txt"

# Delay till the music is over
DelayUntil Delay 3

# Finally exit the demo
ExitDemo
