Mercurial > touhou
comparison pytouhou/game/enemy.py @ 277:219edad0f395
Fix initial laser offset.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 06 Feb 2012 19:17:46 +0100 |
parents | f037bca24f2d |
children | dbb1a86c0235 |
comparison
equal
deleted
inserted
replaced
276:754ff6452d7e | 277:219edad0f395 |
---|---|
166 | 166 |
167 def new_laser(self, variant, laser_type, sprite_idx_offset, angle, speed, | 167 def new_laser(self, variant, laser_type, sprite_idx_offset, angle, speed, |
168 start_offset, end_offset, max_length, width, | 168 start_offset, end_offset, max_length, width, |
169 start_duration, duration, end_duration, | 169 start_duration, duration, end_duration, |
170 grazing_delay, grazing_extra_duration, unknown): | 170 grazing_delay, grazing_extra_duration, unknown): |
171 launch_pos = self.x, self.y | 171 ox, oy = self.bullet_launch_offset |
172 launch_pos = self.x + ox, self.y + oy | |
172 if variant == 86: | 173 if variant == 86: |
173 angle += self.get_player_angle(self.select_player(), launch_pos) | 174 angle += self.get_player_angle(self.select_player(), launch_pos) |
174 laser = Laser(launch_pos, self._game.laser_types[laser_type], | 175 laser = Laser(launch_pos, self._game.laser_types[laser_type], |
175 sprite_idx_offset, angle, speed, | 176 sprite_idx_offset, angle, speed, |
176 start_offset, end_offset, max_length, width, | 177 start_offset, end_offset, max_length, width, |