Mercurial > rinkhals
diff gamelib/engine.py @ 203:653da96db572
Fixed dangling cursor sprite and did some TODO list maintenance.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Fri, 04 Sep 2009 20:25:32 +0000 |
parents | 3074784c93f4 |
children | 07b361ebd87f |
line wrap: on
line diff
--- a/gamelib/engine.py Fri Sep 04 20:23:30 2009 +0000 +++ b/gamelib/engine.py Fri Sep 04 20:25:32 2009 +0000 @@ -120,7 +120,7 @@ if events_equal(e, START_NIGHT): return NightState(self.game) elif e.type is KEYDOWN and e.key == K_ESCAPE: - self.game.gameboard.reset_cursor() + self.game.gameboard.set_cursor() return GameOver(self.game) elif e.type is ANIM_ID: self.game.gameboard.run_animations() @@ -148,7 +148,7 @@ """Add some foxes to the farm""" sound.stop_background_music() self.game.gameboard.tv.sun(False) - self.game.gameboard.reset_cursor() + self.game.gameboard.set_cursor() sound.play_sound("nightfall.ogg") # Add a timer to the event queue @@ -168,7 +168,7 @@ elif e.type is KEYDOWN and e.key == K_d: return pygame.event.post(START_DAY) elif e.type is KEYDOWN and e.key == K_ESCAPE: - self.game.gameboard.reset_cursor() + self.game.gameboard.set_cursor() return GameOver(self.game) elif e.type is ANIM_ID: self.game.gameboard.run_animations()