Mercurial > rinkhals
diff gamelib/animal.py @ 47:be2496df2368
Add egg image to egg sprite.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Mon, 31 Aug 2009 16:57:39 +0000 |
parents | 7e884084e7b1 |
children | f20dd3dcb118 |
line wrap: on
line diff
--- 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):