Mercurial > rinkhals
diff gamelib/engine.py @ 116:d539ef5a3333
Add basic chicken->egg cycle
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Wed, 02 Sep 2009 20:04:47 +0000 |
parents | f5d56688943b |
children | 2c76ed47fc44 |
line wrap: on
line diff
--- a/gamelib/engine.py Wed Sep 02 19:40:28 2009 +0000 +++ b/gamelib/engine.py Wed Sep 02 20:04:47 2009 +0000 @@ -54,6 +54,7 @@ self.game.gameboard.clear_foxes() self.game.gameboard.update_chickens() sound.background_music("daytime.ogg") + self.game.gameboard.hatch_eggs() def event(self, e): if events_equal(e, START_NIGHT): @@ -91,6 +92,8 @@ self.game.gameboard.spawn_foxes() sound.background_music("nighttime.ogg") + self.game.gameboard.lay_eggs() + def event(self, e): if events_equal(e, START_DAY): return DayState(self.game)