Mercurial > rinkhals
comparison gamelib/engine.py @ 245:634491bf37e8
Change toolbar to gui.Toolbar -- gives nicer highlighting.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sat, 05 Sep 2009 12:15:46 +0000 |
parents | 4a87bfa5cc63 |
children | f399e4926c36 |
comparison
equal
deleted
inserted
replaced
244:7024d48c41c2 | 245:634491bf37e8 |
---|---|
116 sound.background_music("daytime.ogg") | 116 sound.background_music("daytime.ogg") |
117 self.game.gameboard.hatch_eggs() | 117 self.game.gameboard.hatch_eggs() |
118 | 118 |
119 def event(self, e): | 119 def event(self, e): |
120 if events_equal(e, START_NIGHT): | 120 if events_equal(e, START_NIGHT): |
121 self.game.gameboard.reset_states() | |
121 return NightState(self.game) | 122 return NightState(self.game) |
122 elif e.type is KEYDOWN and e.key == K_ESCAPE: | 123 elif e.type is KEYDOWN and e.key == K_ESCAPE: |
123 self.game.gameboard.reset_states() | 124 self.game.gameboard.reset_states() |
124 return GameOver(self.game) | 125 return GameOver(self.game) |
125 elif e.type is ANIM_ID: | 126 elif e.type is ANIM_ID: |