Mercurial > rinkhals
comparison gamelib/animations.py @ 265:a655ae452b4e
updated fence explosion animation
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Sat, 05 Sep 2009 13:57:17 +0000 |
parents | 844bfb23d4b6 |
children | 1586eccdefe4 |
comparison
equal
deleted
inserted
replaced
264:812bd4cda8b8 | 265:a655ae452b4e |
---|---|
57 Animation.__init__(self, chicken.pos, self.SEQUENCE_RIGHT) | 57 Animation.__init__(self, chicken.pos, self.SEQUENCE_RIGHT) |
58 else: | 58 else: |
59 Animation.__init__(self, chicken.pos, self.SEQUENCE_LEFT) | 59 Animation.__init__(self, chicken.pos, self.SEQUENCE_LEFT) |
60 | 60 |
61 class FenceExplosion(Animation): | 61 class FenceExplosion(Animation): |
62 FLASH_LEFT = imagecache.load_image('sprites/muzzle_flash.png') | 62 FLASH_1 = imagecache.load_image('sprites/boom1.png') |
63 FLASH_RIGHT = imagecache.load_image('sprites/muzzle_flash.png', | 63 FLASH_2 = imagecache.load_image('sprites/boom2.png') |
64 ("right_facing",)) | 64 FLASH_3 = imagecache.load_image('sprites/boom3.png') |
65 SEQUENCE = [FLASH_LEFT, FLASH_RIGHT, FLASH_LEFT, FLASH_RIGHT] | 65 FLASH_4 = imagecache.load_image('sprites/boom4.png') |
66 SEQUENCE = [FLASH_1, FLASH_2, FLASH_3, FLASH_4] | |
66 | 67 |
67 class FoxDeath(Animation): | 68 class FoxDeath(Animation): |
68 BLOOD_SPLAT = imagecache.load_image('sprites/fox_death.png') | 69 BLOOD_SPLAT = imagecache.load_image('sprites/fox_death.png') |
69 SEQUENCE = [BLOOD_SPLAT, BLOOD_SPLAT] | 70 SEQUENCE = [BLOOD_SPLAT, BLOOD_SPLAT] |
70 | 71 |