Changeset 422:7c0643e51f33


Ignore:
Timestamp:
04/09/11 16:11:56 (12 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Message:

Pass bounds to sprite.fix_bounds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/physics.py

    r416 r422  
    169169        return not bool(new_collisions - old_collisions)
    170170
    171     def fix_bounds(self):
    172         print "Killing", self, self.rect, self._float_pos
     171    def fix_bounds(self, bounds):
     172        print "Killing", self, self.rect, self._float_pos, bounds
    173173        self.kill()
    174174
     
    274274        for sprite in self._mobiles:
    275275            if not inbound(sprite):
    276                 sprite.fix_bounds()
     276                sprite.fix_bounds(self._bounds)
    277277
    278278        # position update and collision check (do last)
Note: See TracChangeset for help on using the changeset viewer.