mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Fix flying game timer
This commit is contained in:
parent
c768b80e60
commit
d1b9ec2621
1 changed files with 2 additions and 1 deletions
|
@ -28,6 +28,7 @@ class CogdoFlyingGame(DirectObject):
|
||||||
self.index2LegalEagle = {}
|
self.index2LegalEagle = {}
|
||||||
self.legalEagles = []
|
self.legalEagles = []
|
||||||
self.isGameComplete = False
|
self.isGameComplete = False
|
||||||
|
self.localPlayer = None
|
||||||
self._hints = {'targettedByEagle': False,
|
self._hints = {'targettedByEagle': False,
|
||||||
'invulnerable': False}
|
'invulnerable': False}
|
||||||
|
|
||||||
|
@ -169,7 +170,7 @@ class CogdoFlyingGame(DirectObject):
|
||||||
|
|
||||||
self.guiMgr.onstage()
|
self.guiMgr.onstage()
|
||||||
if not Globals.Dev.InfiniteTimeLimit:
|
if not Globals.Dev.InfiniteTimeLimit:
|
||||||
self.guiMgr.startTimer(Globals.Gameplay.SecondsUntilGameOver, self._handleTimerExpired, keepHidden=True)
|
self.guiMgr.startTimer(Globals.Gameplay.SecondsUntilGameOver, self._handleTimerExpired)
|
||||||
|
|
||||||
def exit(self):
|
def exit(self):
|
||||||
self.ignore(CogdoFlyingObstacle.EnterEventName)
|
self.ignore(CogdoFlyingObstacle.EnterEventName)
|
||||||
|
|
Loading…
Reference in a new issue