Mercurial > skaapsteker
diff skaapsteker/sprites/player.py @ 210:9a6c711e2fdf
KILLhg statushg status
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Wed, 06 Apr 2011 23:48:09 +0200 |
parents | 189f7f8ef714 |
children | d5a1471a38a7 |
line wrap: on
line diff
--- a/skaapsteker/sprites/player.py Wed Apr 06 23:41:53 2011 +0200 +++ b/skaapsteker/sprites/player.py Wed Apr 06 23:48:09 2011 +0200 @@ -137,6 +137,9 @@ self.facing = new_facing def collided(self, other): + if self.attacking and hasattr(other, 'damage'): + # FIXME: Check if we're facing the right way + other.damage(5) if other not in self._last_collide: self._last_collide.append(other) self._collide_pos = self.collide_rect.midbottom