comparison gamelib/engine.py @ 422:ab4fc3fe0f96

chickens scatter; chop wood
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Sat, 21 Nov 2009 15:35:23 +0000
parents bdc4757e0497
children f2a55e5e24db
comparison
equal deleted inserted replaced
421:e65536ca215b 422:ab4fc3fe0f96
209 """Add some foxes to the farm""" 209 """Add some foxes to the farm"""
210 sound.stop_background_music() 210 sound.stop_background_music()
211 self.game.gameboard.start_night() 211 self.game.gameboard.start_night()
212 212
213 sound.play_sound("nightfall.ogg") 213 sound.play_sound("nightfall.ogg")
214
215 self.game.gameboard.chickens_scatter()
216 self.game.gameboard.chickens_chop_wood()
214 # Add a timer to the event queue 217 # Add a timer to the event queue
215 self.cycle_count = 0 218 self.cycle_count = 0
216 self.cycle_time = SLOW_ANIM_SPEED 219 self.cycle_time = SLOW_ANIM_SPEED
217 pygame.time.set_timer(MOVE_FOX_ID, 4*self.cycle_time) 220 pygame.time.set_timer(MOVE_FOX_ID, 4*self.cycle_time)
218 pygame.time.set_timer(ANIM_ID, self.cycle_time) 221 pygame.time.set_timer(ANIM_ID, self.cycle_time)