# HG changeset patch # User Simon Cross # Date 1251737859 0 # Node ID be2496df23686c9f77e51e140df88b6a149d1712 # Parent 42b837fafc55e14c2900b76f0c9599a5f072e4ab Add egg image to egg sprite. diff -r 42b837fafc55 -r be2496df2368 gamelib/animal.py --- a/gamelib/animal.py Mon Aug 31 16:56:33 2009 +0000 +++ b/gamelib/animal.py Mon Aug 31 16:57:39 2009 +0000 @@ -36,6 +36,10 @@ class Egg(Animal): """An egg""" + def __init__(self, pos): + image = imagecache.load_image('sprites/egg.png') + Animal.__init__(self, image, pos) + # Eggs don't move class Fox(Animal):