def gotoRulesMenu(self, menu, x,y): try: RulesMenu = Rules(self.engine) except Exception as error: Functions.formatException(self.engine, error) self.widgets = [] self.addWidgets()
def gotoSoundMenu(self, menu, x,y): try: SoundMenu = Sound(self.engine) except Exception as error: Functions.formatException(self.engine, error) self.widgets = [] self.addWidgets()
def startGame(self, menu, x,y): try: game = Game.Game(self.engine) except Exception as error: Functions.formatException(self.engine, error) pygame.mouse.set_visible(True) self.engine.inGame = False