Ignore:
Timestamp:
09/05/13 22:17:22 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Amend:
31616561636265613935303431666638633164313365323262306563373433383838376266386139
Rebase:
61646163653333336362393533363133646636663330303337356162336137626565373132336334
Message:

Enemies now die

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r302 r305  
    343343
    344344class Bullet(GameObject):
    345     def __init__(self, space, position, impulse, source_collision_type):
     345    def __init__(self, space, position, impulse, damage,
     346                 source_collision_type):
    346347        body = make_body(1, pymunk.inf, position)
    347348        self.last_position = position
     
    349350        self.shape.sensor = True
    350351        self.shape.collision_type = COLLISION_TYPE_PROJECTILE
     352        self.damage = damage
    351353        self.source_collision_type = source_collision_type
    352354        super(Bullet, self).__init__(
Note: See TracChangeset for help on using the changeset viewer.