Exemple #1
0
    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))
Exemple #2
0
 def new_game(self):
     res.fadeoutMusic(1000)
     self.game = world.build()
     level = self.game.getChildByGUID(5001)
     self.driver.append(LevelState(self.driver, level))
Exemple #3
0
 def new_game(self):
     res.fadeoutMusic(1000)
     self.game = world.build()
     level = self.game.getChildByGUID(5001)
     sd.start(LevelState(level))