def load(i): print "load game ",i (slide, music) = globals.loadGame('save.'+str(i)) #The parsing of Save file has ended, we can launch the game #start music if music is not None: globals.currentage.getMusic(music).playmusic() SlideManager.resetStackTo([slide])
def newgameenter(): # FIXME: at this time there is no code to clean up paths added by 'push_age' if parameters.testCustomAge is not None: exec """from $AGE import $AGE filemanager.push_age('$AGE') globals.currentage = $AGE()""".replace("$AGE", parameters.testCustomAge) else: from DniChamberAge import DniAge filemanager.push_age('Dni') globals.currentage = DniAge() #from FooAge import FooAge #filemanager.push_age('FooAge') #globals.currentage = FooAge() SlideManager.resetStackTo([globals.currentage.getslide(globals.currentage.getStartLocation())]) return None