예제 #1
0
 def winGame(self, obj, arg):
     self.world.msgr.displayMsg('You win!', 2)
     self.log.info('win the game')
     self.manager.removeBehavioursByName('player-movement')
     self.keys = [0] * 5
     timer.setTimer(common.E_GAME_OVER, 3)
     olctlhub.send(['win'])
예제 #2
0
 def loseGame(self, obj, arg):
     self.world.msgr.displayMsg('You lose!', 2)
     self.log.info('lose the game')
     self.manager.removeBehavioursByName('player-movement')
     self.keys = [0] * 5
     timer.setTimer(common.E_GAME_OVER, 3)