def enterGame(self):
     DistCogdoLevelGame.enterGame(self)
     self._physicsTask = taskMgr.add(self._doPhysics,
                                     self.uniqueName('physics'),
                                     priority=25)
     self.evWalls.stash()
     self._startTimer()
 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()
Пример #3
0
 def enterGame(self):
     DistCogdoLevelGame.enterGame(self)
     self._physicsTask = taskMgr.add(self._doPhysics, self.uniqueName('physics'), priority=25)
     self.evWalls.stash()
     self._startTimer()
     if __dev__:
         self.accept(self._durationChangedEvent, self._startTimer)
Пример #4
0
 def enterGame(self):
     DistCogdoLevelGame.enterGame(self)
     self._physicsTask = taskMgr.add(self._doPhysics, self.uniqueName('physics'), priority=25)
     self.evWalls.stash()
     self._startTimer()
     if __dev__:
         self.accept(self._durationChangedEvent, self._startTimer)
 def enterGame(self):  # Entering the game
     DistCogdoLevelGame.enterGame(self)
     timeLeft = Consts.GameDuration.get() - globalClock.getRealTime(
     ) - self.getStartTime()
     self.timer.setTime(timeLeft)  # Loads the time left until it runs out
     self.timer.countdown(timeLeft,
                          self.timerExpired)  # Countdown the time left
     self.timer.unstash()
 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()