Mercurial > rinkhals
comparison gamelib/engine.py @ 180:c0cad267222b
Fix typo in reference to MainMenuState.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Fri, 04 Sep 2009 16:35:00 +0000 |
parents | e2b5262c2b11 |
children | d63951985313 |
comparison
equal
deleted
inserted
replaced
179:e2b5262c2b11 | 180:c0cad267222b |
---|---|
82 sound.stop_background_music() | 82 sound.stop_background_music() |
83 self.game.set_help_screen() | 83 self.game.set_help_screen() |
84 | 84 |
85 def event(self, e): | 85 def event(self, e): |
86 if e.type is KEYDOWN and e.key == K_ESCAPE: | 86 if e.type is KEYDOWN and e.key == K_ESCAPE: |
87 return MainMenu(self.game) | 87 return MainMenuState(self.game) |
88 elif events_equal(e, GO_MAIN_MENU): | 88 elif events_equal(e, GO_MAIN_MENU): |
89 return MainMenuState(self.game) | 89 return MainMenuState(self.game) |
90 elif e.type is not QUIT: | 90 elif e.type is not QUIT: |
91 self.game.main_app.event(e) | 91 self.game.main_app.event(e) |
92 | 92 |