Mercurial > rinkhals
comparison gamelib/tiles.py @ 51:32fb395cf71c
Add missing call to vid.Tile.__init__ to FarmTile.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Mon, 31 Aug 2009 17:18:03 +0000 |
parents | dd9d2a4dd494 |
children | 205789321a46 |
comparison
equal
deleted
inserted
replaced
50:c05ca3ef9f1e | 51:32fb395cf71c |
---|---|
45 class FarmTile(vid.Tile): | 45 class FarmTile(vid.Tile): |
46 | 46 |
47 def __init__(self, image_name): | 47 def __init__(self, image_name): |
48 self.day_image = imagecache.load_image(image_name) | 48 self.day_image = imagecache.load_image(image_name) |
49 self.night_image = imagecache.load_image(image_name, ("night",)) | 49 self.night_image = imagecache.load_image(image_name, ("night",)) |
50 self.image = self.day_image | 50 vid.Tile.__init__(self, self.day_image) |
51 | 51 |
52 def sun(self, sun_on): | 52 def sun(self, sun_on): |
53 if sun_on: | 53 if sun_on: |
54 self.image = self.day_image | 54 self.image = self.day_image |
55 else: | 55 else: |