Mercurial > rinkhals
comparison gamelib/engine.py @ 142:1597081e5a84
Disable timer when game is over
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Wed, 02 Sep 2009 23:08:29 +0000 |
parents | dc4bb10cc54c |
children | 082868bea873 |
comparison
equal
deleted
inserted
replaced
141:dc4bb10cc54c | 142:1597081e5a84 |
---|---|
140 | 140 |
141 class GameOver(State): | 141 class GameOver(State): |
142 def init(self): | 142 def init(self): |
143 """Setup everything""" | 143 """Setup everything""" |
144 self.game.generate_score() | 144 self.game.generate_score() |
145 pygame.time.set_timer(MOVE_FOX_ID, 0) | |
145 | 146 |
146 def event(self, e): | 147 def event(self, e): |
147 if e.type is KEYDOWN: | 148 if e.type is KEYDOWN: |
148 if e.key == K_ESCAPE: | 149 if e.key == K_ESCAPE: |
149 return MainMenuState(self.game) | 150 return MainMenuState(self.game) |