diff 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
line wrap: on
line diff
--- a/pytouhou/game/player.py
+++ b/pytouhou/game/player.py
@@ -46,6 +46,7 @@ class Player(object):
         self._game = game
 
         self.hitbox_half_size = character.hitbox_size / 2.
+        self.graze_hitbox_half_size = character.graze_hitbox_size / 2.
 
         self.state = state
         self.character = character