diff pytouhou/game/player.py @ 236:741860192b56

Implement ANM0 interrupts “Instruction” 22 is used as a label for interrupts. If the normal animation is interrupted, it goes straight to the matched instruction. Interrupt -1 matches all interrupts.
author Thibaut Girka <thib@sitedethib.com>
date Sun, 01 Jan 2012 19:47:34 +0100
parents e59bd7979ddc
children 77b83064b57e
line wrap: on
line diff
--- a/pytouhou/game/player.py
+++ b/pytouhou/game/player.py
@@ -130,6 +130,7 @@ class Player(object):
             bullet_type = BulletType(self.anm_wrapper, shot.sprite % 256,
                                      shot.sprite % 256 + 32, #TODO: find the real cancel anim
                                      0, 0, 0, 0.)
+            #TODO: Type 1 (homing bullets) and type 3 (laser)
             if shot.type == 2:
                 #TODO: triple-check acceleration!
                 bullets.append(Bullet((x, y), bullet_type, 0,
@@ -137,7 +138,6 @@ class Player(object):
                                       (-1, 0, 0, 0, 0.15, -pi/2., 0., 0.),
                                       16, self, self._game, player_bullet=True,
                                       damage=shot.damage, hitbox=shot.hitbox))
-            #TODO: types 1 and 4
             else:
                 bullets.append(Bullet((x, y), bullet_type, 0,
                                       shot.angle, shot.speed,