comparison pytouhou/game/bullet.py @ 255:a0d6b1915591

Fix bullet removal condition.
author Thibaut Girka <thib@sitedethib.com>
date Sun, 22 Jan 2012 19:47:40 +0100
parents cb329dca4758
children 507dfd6efe0c
comparison
equal deleted inserted replaced
254:6bd565019f9a 255:a0d6b1915591
28 self._sprite = None 28 self._sprite = None
29 self._anmrunner = None 29 self._anmrunner = None
30 self._removed = False 30 self._removed = False
31 self._launched = False 31 self._launched = False
32 self._bullet_type = bullet_type 32 self._bullet_type = bullet_type
33 self._was_visible = True
33 34
34 if hitbox: 35 if hitbox:
35 self.hitbox_half_size = (hitbox[0] / 2., hitbox[1] / 2.) 36 self.hitbox_half_size = (hitbox[0] / 2., hitbox[1] / 2.)
36 else: 37 else:
37 self.hitbox_half_size = (bullet_type.hitbox_size / 2., bullet_type.hitbox_size / 2.) 38 self.hitbox_half_size = (bullet_type.hitbox_size / 2., bullet_type.hitbox_size / 2.)