def load_game(self): res.fadeoutMusic(1000) try: path = os.path.join("resources", "saves", "save") self.game = loadObject(path) except IOError: return self.new_game() level = self.game.getChildByGUID(5001) sd.start(WorldState(level))
def new_game(self): from lib2d.server.start import start_local def build(): print "world stat" game = world.build() sd.start(WorldState(game.getChildByGUID(5001))) res.fadeoutMusic(1000) #sd.start(WaitScreen(build)) game = world.build() start_local() sd.start(WorldState(game.getChildByGUID(5001)))
def build(): print "world stat" game = world.build() sd.start(WorldState(game.getChildByGUID(5001)))