Mercurial > rinkhals
comparison gamelib/animal.py @ 201:fe1e9c18d4d7
layering bugfix; indoor chickens now use normal chicken icons
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Fri, 04 Sep 2009 20:16:51 +0000 |
parents | 67d10f7e0159 |
children | 962934b8c7dc |
comparison
equal
deleted
inserted
replaced
200:67d10f7e0159 | 201:fe1e9c18d4d7 |
---|---|
92 if images: | 92 if images: |
93 layers.append(images) | 93 layers.append(images) |
94 | 94 |
95 layers.sort(key=lambda l: l[2]) | 95 layers.sort(key=lambda l: l[2]) |
96 | 96 |
97 self.image_left = layers[0][0] | 97 # these always go on the bottom so that other layers don't get overwritten |
98 self.image_right = layers[0][1] | 98 self.image_left = self._image_left.copy() |
99 for l in layers[1:]: | 99 self.image_right = self._image_right.copy() |
100 for l in layers: | |
100 self.image_left.blit(l[0], (0,0)) | 101 self.image_left.blit(l[0], (0,0)) |
101 self.image_right.blit(l[1], (0,0)) | 102 self.image_right.blit(l[1], (0,0)) |
102 | 103 |
103 self._set_image_facing(self.facing) | 104 self._set_image_facing(self.facing) |
104 | 105 |