comparison 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
comparison
equal deleted inserted replaced
46:42b837fafc55 47:be2496df2368
33 """A free chicken will move away from other free chickens""" 33 """A free chicken will move away from other free chickens"""
34 return self.pos 34 return self.pos
35 35
36 class Egg(Animal): 36 class Egg(Animal):
37 """An egg""" 37 """An egg"""
38
39 def __init__(self, pos):
40 image = imagecache.load_image('sprites/egg.png')
41 Animal.__init__(self, image, pos)
38 42
39 # Eggs don't move 43 # Eggs don't move
40 44
41 class Fox(Animal): 45 class Fox(Animal):
42 """A fox""" 46 """A fox"""