Ejemplo n.º 1
0
	def gotoRulesMenu(self, menu, x,y):
		try:
			RulesMenu = Rules(self.engine)
		except Exception as error:
			Functions.formatException(self.engine, error)

		self.widgets = []
		self.addWidgets()
Ejemplo n.º 2
0
	def gotoSoundMenu(self, menu, x,y):
		try:
			SoundMenu = Sound(self.engine)
		except Exception as error:
			Functions.formatException(self.engine, error)

		self.widgets = []
		self.addWidgets()
Ejemplo n.º 3
0
	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