Changeset 174:8774c170a232


Ignore:
Timestamp:
04/06/11 10:28:06 (12 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Message:

Slightly better enemy handling.

Location:
skaapsteker/sprites
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/base.py

    r163 r174  
    2929        self.image = data.load_image('sprites/' + self.image_file)
    3030        self.starting_tile_pos = pos
    31         self.rect = self.image.get_rect(topleft=(pos[0]*TILE_SIZE[0], pos[1]*TILE_SIZE[1]))
    32         self.collide_rect = self.image.get_rect(topleft=(pos[0]*TILE_SIZE[0], pos[1]*TILE_SIZE[1]))
     31        self.rect = self.image.get_rect(midbottom=(pos[0]*TILE_SIZE[0]+TILE_SIZE[0]/2, (pos[1]+1)*TILE_SIZE[1]))
     32        self.collide_rect = self.rect.move(0, 0)
    3333        self._layer = Layers.PLAYER
    3434        self.setup(**opts)
  • skaapsteker/sprites/enemies.py

    r127 r174  
    33
    44class Dummy(Monster):
    5     image_file = 'dummy.png'
     5    image_file = 'oni red/oni-red-01.png'
    66
    77    def setup(self, direction):
Note: See TracChangeset for help on using the changeset viewer.