Ignore:
Timestamp:
09/05/13 21:26:13 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Rebase:
66303837306133316364613963373364326364616434393063323333343264303466663633643535
Message:

Bullets that mostly die when they hit things

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/area.py

    r283 r293  
    146146            # position change is enough
    147147        elif FireEvent.matches(ev):
    148             bullet = Bullet(self.space, ev.source, ev.impulse)
     148            bullet = Bullet(self.space, ev.source, ev.impulse,
     149                            ev.source_collision_type)
    149150            self._drawables.add(bullet)
    150151        self.keys.handle_event(ev)
     
    197198        for drawable in self._drawables:
    198199            drawable.animate()
     200            if drawable.remove:
     201                self._drawables.remove(drawable)
    199202
    200203        super(AreaScreen, self).tick(seconds)
Note: See TracChangeset for help on using the changeset viewer.