Mercurial > rinkhals
comparison gamelib/engine.py @ 539:f4d1b9ff9558
Lumberjacks only wander off when their work is done.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 28 Nov 2009 09:52:08 +0000 |
parents | c23e2bd07247 |
children | 450de9dfa106 |
comparison
equal
deleted
inserted
replaced
538:ec5276cfe98b | 539:f4d1b9ff9558 |
---|---|
191 sound.stop_background_music() | 191 sound.stop_background_music() |
192 self.game.gameboard.start_night() | 192 self.game.gameboard.start_night() |
193 | 193 |
194 sound.play_sound("nightfall.ogg") | 194 sound.play_sound("nightfall.ogg") |
195 | 195 |
196 self.game.gameboard.chickens_scatter() | |
197 self.game.gameboard.chickens_chop_wood() | |
198 # Add a timer to the event queue | 196 # Add a timer to the event queue |
199 self.cycle_count = 0 | 197 self.cycle_count = 0 |
200 self.cycle_time = SLOW__SPEED | 198 self.cycle_time = SLOW__SPEED |
201 pygame.time.set_timer(MOVE_FOX_ID, self.cycle_time) | 199 pygame.time.set_timer(MOVE_FOX_ID, self.cycle_time) |
202 sound.background_music("nighttime.ogg") | 200 sound.background_music("nighttime.ogg") |