Mercurial > touhou
comparison pytouhou/game/player.py @ 176:80a4c7ed43b3
Add grazing check.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 22 Oct 2011 06:21:38 -0700 |
parents | 5dc243bcf312 |
children | 184196480f59 |
comparison
equal
deleted
inserted
replaced
175:5dc243bcf312 | 176:80a4c7ed43b3 |
---|---|
44 self._sprite = None | 44 self._sprite = None |
45 self._anmrunner = None | 45 self._anmrunner = None |
46 self._game = game | 46 self._game = game |
47 | 47 |
48 self.hitbox_half_size = character.hitbox_size / 2. | 48 self.hitbox_half_size = character.hitbox_size / 2. |
49 self.graze_hitbox_half_size = character.graze_hitbox_size / 2. | |
49 | 50 |
50 self.state = state | 51 self.state = state |
51 self.character = character | 52 self.character = character |
52 self.anm_wrapper = character.anm_wrapper | 53 self.anm_wrapper = character.anm_wrapper |
53 self.direction = None | 54 self.direction = None |