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'])
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)