def enterGame(self): DistCogdoLevelGame.enterGame(self) timeLeft = Consts.GameDuration.get() - (globalClock.getRealTime() - self.getStartTime()) self.timer.setTime(timeLeft) self.timer.countdown(timeLeft, self.timerExpired) self.timer.unstash()
def enterGame(self): DistCogdoLevelGame.enterGame(self) self._physicsTask = taskMgr.add(self._doPhysics, self.uniqueName('physics'), priority=25) self.evWalls.stash() self._startTimer()