Ignore:
Timestamp:
Sep 7, 2013, 9:16:59 AM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Message:

No, we really don't need EnemyDeathEvent?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/enemies.py

    r393 r406  
    99from nagslang.constants import (COLLISION_TYPE_ENEMY, COLLISION_TYPE_FURNITURE,
    1010                                ACID_SPEED, ACID_DAMAGE, ZORDER_MID)
    11 from nagslang.events import EnemyDeathEvent
    1211from nagslang.game_object import (GameObject, SingleShapePhysicser, Result,
    1312                                  Bullet, make_body)
     
    7170        self.health -= amount
    7271        if self.health <= 0:
    73             EnemyDeathEvent.post()
     72            self.world.kills += 1
    7473            self.physicser.remove_from_space()
    7574
Note: See TracChangeset for help on using the changeset viewer.