Changeset 80:54141a2c46f9


Ignore:
Timestamp:
Apr 3, 2011, 11:23:28 PM (9 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Message:

Scenery does not collide.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/physics.py

    r78 r80  
    131131                    collide((sprite1, sprite2))
    132132            for sprite2 in self._immobiles.sprites():
    133                 if spritecollide(sprite2):
     133                if (sprite2.floor or sprite2.block) and spritecollide(sprite2):
    134134                    collide((sprite1, sprite2))
    135135        self.dispatch_collisions(collisions)
Note: See TracChangeset for help on using the changeset viewer.