Mercurial > rinkhals
comparison gamelib/animations.py @ 235:d0760fccce14
Hold flash for a bit longer
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 05 Sep 2009 09:23:16 +0000 |
parents | d3d5352f5853 |
children | 4a87bfa5cc63 |
comparison
equal
deleted
inserted
replaced
234:ee1ac134022d | 235:d0760fccce14 |
---|---|
40 except StopIteration: | 40 except StopIteration: |
41 self.removed = True | 41 self.removed = True |
42 | 42 |
43 class MuzzleFlash(Animation): | 43 class MuzzleFlash(Animation): |
44 | 44 |
45 SEQUENCE_LEFT = [imagecache.load_image('sprites/muzzle_flash.png')] | 45 FLASH_LEFT = imagecache.load_image('sprites/muzzle_flash.png') |
46 SEQUENCE_RIGHT = [imagecache.load_image('sprites/muzzle_flash.png', | 46 FLASH_RIGHT = imagecache.load_image('sprites/muzzle_flash.png', |
47 ("right_facing",))] | 47 ("right_facing",)) |
48 | |
49 SEQUENCE_LEFT = [FLASH_LEFT, FLASH_LEFT] | |
50 SEQUENCE_RIGHT = [FLASH_RIGHT, FLASH_RIGHT] | |
48 | 51 |
49 def __init__(self, chicken): | 52 def __init__(self, chicken): |
50 if chicken.facing == 'right': | 53 if chicken.facing == 'right': |
51 Animation.__init__(self, self.SEQUENCE_RIGHT, chicken.pos) | 54 Animation.__init__(self, self.SEQUENCE_RIGHT, chicken.pos) |
52 else: | 55 else: |