diff pytouhou/game/player.py @ 142:c7f0fd9d2145

Simple collision detection
author Thibaut Girka <thib@sitedethib.com>
date Sun, 25 Sep 2011 20:56:14 +0200
parents 11ab06f4c4c6
children 86807b8a63bd
line wrap: on
line diff
--- a/pytouhou/game/player.py
+++ b/pytouhou/game/player.py
@@ -43,6 +43,8 @@ class Player(object):
         self._sprite = None
         self._anmrunner = None
 
+        self.hitbox_half_size = character.hitbox_size / 2.
+
         self.state = state
         self.character = character
         self.anm_wrapper = character.anm_wrapper