Mercurial > rinkhals
comparison gamelib/animations.py @ 241:1a7000c8211c
Demolition foxes, including better fox selection.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 05 Sep 2009 11:19:26 +0000 |
parents | 4a87bfa5cc63 |
children | 844bfb23d4b6 |
comparison
equal
deleted
inserted
replaced
240:af19d6fdc1f8 | 241:1a7000c8211c |
---|---|
54 if chicken.facing == 'right': | 54 if chicken.facing == 'right': |
55 Animation.__init__(self, self.SEQUENCE_RIGHT, chicken.pos) | 55 Animation.__init__(self, self.SEQUENCE_RIGHT, chicken.pos) |
56 else: | 56 else: |
57 Animation.__init__(self, self.SEQUENCE_LEFT, chicken.pos) | 57 Animation.__init__(self, self.SEQUENCE_LEFT, chicken.pos) |
58 | 58 |
59 class FenceExplosion(Animation): | |
60 | |
61 FLASH_LEFT = imagecache.load_image('sprites/muzzle_flash.png') | |
62 FLASH_RIGHT = imagecache.load_image('sprites/muzzle_flash.png', | |
63 ("right_facing",)) | |
64 | |
65 SEQUENCE = [FLASH_LEFT, FLASH_RIGHT, FLASH_LEFT, FLASH_RIGHT] | |
66 | |
67 def __init__(self, fencetile): | |
68 Animation.__init__(self, self.SEQUENCE, fencetile) | |
69 |