comparison 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
comparison
equal deleted inserted replaced
141:982b21222602 142:c7f0fd9d2145
40 40
41 class Player(object): 41 class Player(object):
42 def __init__(self, state, character): 42 def __init__(self, state, character):
43 self._sprite = None 43 self._sprite = None
44 self._anmrunner = None 44 self._anmrunner = None
45
46 self.hitbox_half_size = character.hitbox_size / 2.
45 47
46 self.state = state 48 self.state = state
47 self.character = character 49 self.character = character
48 self.anm_wrapper = character.anm_wrapper 50 self.anm_wrapper = character.anm_wrapper
49 self.direction = None 51 self.direction = None