Ignore:
Timestamp:
09/07/13 21:57:28 (8 years ago)
Author:
Adrianna Pińska <adrianna.pinska@…>
Branch:
default
Phase:
public
Rebase:
38666666313161383430396164326539623261326531643133643561303364333863623663363634
Message:

queen coughs up magenta keycard upon expiring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/enemies.py

    r600 r602  
    1111from nagslang.game_object import (GameObject, SingleShapePhysicser, Result,
    1212                                  Bullet, make_body)
     13from nagslang.collectable import KeyCard
    1314from nagslang.mutators import FLIP_H
    1415from nagslang.resources import resources
     
    335336        result = super(Queen, self).update(dt)
    336337        self.spawn(result)
     338        if self.health <= 0:
     339            result.add += (KeyCard(self.get_space(),
     340            self.physicser.position, "keycard_magenta"),)
    337341        return result
    338342
Note: See TracChangeset for help on using the changeset viewer.