Mercurial > touhou
comparison pytouhou/games/eosd.py @ 233:067f6d9c562b
Fix replay handling a bit
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sat, 31 Dec 2011 02:50:04 +0100 |
parents | 8843e26f80c3 |
children | e59bd7979ddc |
comparison
equal
deleted
inserted
replaced
232:8843e26f80c3 | 233:067f6d9c562b |
---|---|
148 #TODO: find a better way to do that. | 148 #TODO: find a better way to do that. |
149 bullet_type = BulletType(self.anm_wrapper, shot.sprite % 256, | 149 bullet_type = BulletType(self.anm_wrapper, shot.sprite % 256, |
150 shot.sprite % 256 + 32, #TODO: find the real cancel anim | 150 shot.sprite % 256 + 32, #TODO: find the real cancel anim |
151 0, 0, 0, 0.) | 151 0, 0, 0, 0.) |
152 if shot.type == 2: | 152 if shot.type == 2: |
153 #TODO: check acceleration, check duration, check everything! | 153 #TODO: triple-check acceleration! |
154 bullets.append(Bullet((x, y), bullet_type, 0, | 154 bullets.append(Bullet((x, y), bullet_type, 0, |
155 shot.angle, shot.speed, | 155 shot.angle, shot.speed, |
156 (-1, 0, 0, 0, 0.15, -pi/2., 0., 0.), | 156 (-1, 0, 0, 0, 0.15, -pi/2., 0., 0.), |
157 16, self, self._game, player_bullet=True, | 157 16, self, self._game, player_bullet=True, |
158 damage=shot.damage, hitbox=shot.hitbox)) | 158 damage=shot.damage, hitbox=shot.hitbox)) |