Changeset 163:98ff05be85e0


Ignore:
Timestamp:
Apr 5, 2011, 10:02:41 PM (9 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Message:

Better Item placement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/base.py

    r162 r163  
    6161        self.image = data.load_image('sprites/' + self.image_file)
    6262        self.starting_tile_pos = pos
    63         self.rect = self.image.get_rect(topleft=(pos[0]*TILE_SIZE[0], pos[1]*TILE_SIZE[1]))
    64         self.collide_rect = self.rect
     63        self.rect = self.image.get_rect(midbottom=(pos[0]*TILE_SIZE[0]+TILE_SIZE[0]/2, (pos[1]+1)*TILE_SIZE[1]))
     64        self.collide_rect = self.rect.move(0, 0)
    6565        self._layer = Layers.PLAYER
    6666        self.setup(**opts)
Note: See TracChangeset for help on using the changeset viewer.