Mercurial > touhou
comparison pytouhou/game/enemy.py @ 247:fb3a263213d1
Fix instruction 70 to always fire to the right.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 15 Jan 2012 18:09:25 +0100 |
parents | 1d3c8c7473a2 |
children | 77b83064b57e |
comparison
equal
deleted
inserted
replaced
246:cb329dca4758 | 247:fb3a263213d1 |
---|---|
130 | 130 |
131 if type_ in (67, 69, 71): | 131 if type_ in (67, 69, 71): |
132 launch_angle += self.get_player_angle(player, launch_pos) | 132 launch_angle += self.get_player_angle(player, launch_pos) |
133 if type_ in (69, 70, 71, 74): | 133 if type_ in (69, 70, 71, 74): |
134 angle = 2. * pi / bullets_per_shot | 134 angle = 2. * pi / bullets_per_shot |
135 if type_ == 71 and bullets_per_shot % 2 or type_ == 69 and not bullets_per_shot % 2: | 135 if type_ == 71 and bullets_per_shot % 2 or type_ in (69, 70) and not bullets_per_shot % 2: |
136 launch_angle += pi / bullets_per_shot | 136 launch_angle += pi / bullets_per_shot |
137 if type_ != 75: | 137 if type_ != 75: |
138 launch_angle -= angle * (bullets_per_shot - 1) / 2. | 138 launch_angle -= angle * (bullets_per_shot - 1) / 2. |
139 | 139 |
140 bullets = self._game.bullets | 140 bullets = self._game.bullets |