Mercurial > mamba
comparison mamba/snake.py @ 262:9f3b4e16372e
renamed tail images for consistency
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Thu, 15 Sep 2011 02:26:35 +0200 |
parents | d0ed88799c44 |
children | c7c9d71ac6ea |
comparison
equal
deleted
inserted
replaced
261:d0ed88799c44 | 262:9f3b4e16372e |
---|---|
295 super(Body, self).__init__("snake-body", tile_pos) | 295 super(Body, self).__init__("snake-body", tile_pos) |
296 | 296 |
297 | 297 |
298 class Tail(Segment): | 298 class Tail(Segment): |
299 INDICATORS = { | 299 INDICATORS = { |
300 "flame-retardant": mutators.Overlay("snake/snake-tail-fire"), | 300 "flame-retardant": mutators.Overlay("snake/snake-tail-fire-r"), |
301 "amphibious": mutators.Overlay("snake/snake-tail-puddle"), | 301 "amphibious": mutators.Overlay("snake/snake-tail-puddle-r"), |
302 } | 302 } |
303 | 303 |
304 def __init__(self, tile_pos): | 304 def __init__(self, tile_pos): |
305 super(Tail, self).__init__("snake-tail", tile_pos) | 305 super(Tail, self).__init__("snake-tail-r", tile_pos) |
306 | 306 |
307 def show_mutation(self, mutation): | 307 def show_mutation(self, mutation): |
308 self._detail_mutators = (self.INDICATORS[mutation],) | 308 self._detail_mutators = (self.INDICATORS[mutation],) |
309 self.make_images() | 309 self.make_images() |
310 self.update_image() | 310 self.update_image() |