Mercurial > rinkhals
changeset 47:be2496df2368
Add egg image to egg sprite.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Mon, 31 Aug 2009 16:57:39 +0000 |
parents | 42b837fafc55 |
children | 030bea282f28 |
files | gamelib/animal.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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):