Changeset 150:a5ca417ee39a


Ignore:
Timestamp:
04/05/11 17:50:46 (12 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Message:

Centre camera one tile higher then the midbottom of the player, to avoid bouncing around due to animation size mismatches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/levelscene.py

    r145 r150  
    9595        cr = self._clip_rect
    9696        lr = self._level_surface.get_rect()
    97         cr.center = self._player.collide_rect.center
     97        cr.center = self._player.collide_rect.move(0, -level.TILE_SIZE[0]).midbottom
    9898        cr.clamp_ip(lr)
    9999
Note: See TracChangeset for help on using the changeset viewer.