Mercurial > rinkhals
diff 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 |
line wrap: on
line diff
--- a/gamelib/animations.py Sat Sep 05 10:37:43 2009 +0000 +++ b/gamelib/animations.py Sat Sep 05 11:19:26 2009 +0000 @@ -56,3 +56,14 @@ else: Animation.__init__(self, self.SEQUENCE_LEFT, chicken.pos) +class FenceExplosion(Animation): + + FLASH_LEFT = imagecache.load_image('sprites/muzzle_flash.png') + FLASH_RIGHT = imagecache.load_image('sprites/muzzle_flash.png', + ("right_facing",)) + + SEQUENCE = [FLASH_LEFT, FLASH_RIGHT, FLASH_LEFT, FLASH_RIGHT] + + def __init__(self, fencetile): + Animation.__init__(self, self.SEQUENCE, fencetile) +