def loadBoatScene2(): viz.MainWindow.setScene(viz.Scene2) boatscene.initBoat2() boatscene.initIschia2() audiocache.loadAudioAssets() boatscene.loadTexQuads(2)
# yield viztask.waitTime(globals_oa.CREDITS_TIME) # yield fader.fadeOutTask() # sys.exit('exiting now!') #Load ALL assets for both scenes #GodRay.init() #boatscene.initFog() #loadBoatScene2() loadBoatScene() globals_oa.user.setPosition([0,0,0]) loadDisabledOceanScene() scavengerhunt.loadStuff() viz.clearcolor(0, 0, 0) #createSphereScene() #schedule master scene manager audiocache.loadAudioAssets() viztask.schedule(loadOpeningTitle()) #viztask.schedule(loadBoatScene()) #viztask.schedule(boatscene.unhideBoatAndIschia()) #removeSphere() viztask.schedule(startBoatIntro) def playAudioAndSaveGlobalPointer(audioFilePointer): print "playing audio - " + str(audioFilePointer) globals_oa.audioFilePlaying = audioFilePointer # if globals_oa.audioMixer is not None: # globals_oa.audioMixer.play(audioFilePointer) # else: audioFilePointer.play()