Changeset 145:fec9ed36e9a2


Ignore:
Timestamp:
Apr 5, 2011, 2:29:13 PM (9 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Message:

Base camera off player collide_rect, so facing changes don't cause camera jumps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/levelscene.py

    r141 r145  
    9595        cr = self._clip_rect
    9696        lr = self._level_surface.get_rect()
    97         cr.center = self._player.rect.center
     97        cr.center = self._player.collide_rect.center
    9898        cr.clamp_ip(lr)
    9999
Note: See TracChangeset for help on using the changeset viewer.