Changeset 389:64d8e49e9a86


Ignore:
Timestamp:
04/09/11 14:10:39 (12 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
36383737633138343931343337323233633236313865343663373435353339366237313132356536
Message:

Hook up images for lightning and energy drain. Given lightning negative friction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/projectiles.py

    r366 r389  
    2727
    2828    gravitates = False
     29    friction_coeff = (1.2, 1.2) # negative friction
    2930
    30     image_dir = 'sprites/attacks/fireball'
     31    image_dir = 'sprites/attacks'
    3132    animation_regexes = [
    32         ('frightening', r"^fireball-\d+-sm.png$"),
     33        ('frightening', r"^lightning.png$"),
    3334    ]
    3435
     
    4142    PROJECTILE_SIZE = (55, 8) # pixels
    4243    VELOCITY = (400, 0) # pps
     44
     45
     46class EnergyDrain(Projectile):
     47
     48    gravitates = False
     49    friction_coeff = (1.0, 1.0) # no friction
     50
     51    image_dir = 'sprites/attacks'
     52    animation_regexes = [
     53        ('draining', r"^energy_drain.png$"),
     54    ]
     55
     56    facings = {
     57        "frightening" : (
     58            ('left', None),
     59            ('right', lambda x: transform.flip(x, True, False))),
     60    }
     61
     62    PROJECTILE_SIZE = (55, 8) # pixels
     63    VELOCITY = (400, 0) # pps
Note: See TracChangeset for help on using the changeset viewer.