def new_game(self): if self.game: [ i.unload() for i in self.game.getChildren() ] self.game.unload() self.game = None res.fadeoutMusic(1000) self.game = world.build() level = self.game.getChildByGUID(5001) self.parent.append(LevelState(level))
def new_game(self): res.fadeoutMusic(1000) self.game = world.build() level = self.game.getChildByGUID(5001) self.driver.append(LevelState(self.driver, level))
def new_game(self): res.fadeoutMusic(1000) self.game = world.build() level = self.game.getChildByGUID(5001) sd.start(LevelState(level))