comparison pytouhou/game/bullet.py @ 142:c7f0fd9d2145

Simple collision detection
author Thibaut Girka <thib@sitedethib.com>
date Sun, 25 Sep 2011 20:56:14 +0200
parents 81e05aed8db5
children 30338dc33a7b
comparison
equal deleted inserted replaced
141:982b21222602 142:c7f0fd9d2145
26 self._sprite = None 26 self._sprite = None
27 self._anmrunner = None 27 self._anmrunner = None
28 self._removed = False 28 self._removed = False
29 self._launched = False 29 self._launched = False
30 self._bullet_type = bullet_type 30 self._bullet_type = bullet_type
31
32 self.hitbox_half_size = bullet_type.hitbox_size / 2.
31 33
32 self.speed_interpolator = None 34 self.speed_interpolator = None
33 self.frame = 0 35 self.frame = 0
34 self.grazed = False 36 self.grazed = False
35 37