view skaapsteker/sprites/projectiles.py @ 336:c8fd82ff0c71

Hook up fire buttons to attack functions. Use correct check for tails. Add skeleton for projectiles.
author Simon Cross <hodgestar@gmail.com>
date Sat, 09 Apr 2011 12:29:34 +0200
parents
children 8f578fe33fe7
line wrap: on
line source

"""Things people throw at each other."""

from .sprites import Projectile

class Fireball(Projectile):

    gravitates = True

    image_dir = 'sprites/fireball'
    animation_regexes = [
        ("raining_death", r"^fireball-\d+.png$"),
    ]

    def collided_player(self, player):
        print "%s went boom with player" % self