changeset 277:219edad0f395

Fix initial laser offset.
author Thibaut Girka <thib@sitedethib.com>
date Mon, 06 Feb 2012 19:17:46 +0100
parents 754ff6452d7e
children 615c0bb6064b
files pytouhou/game/enemy.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -168,7 +168,8 @@ class Enemy(object):
                   start_offset, end_offset, max_length, width,
                   start_duration, duration, end_duration,
                   grazing_delay, grazing_extra_duration, unknown):
-        launch_pos = self.x, self.y
+        ox, oy = self.bullet_launch_offset
+        launch_pos = self.x + ox, self.y + oy
         if variant == 86:
             angle += self.get_player_angle(self.select_player(), launch_pos)
         laser = Laser(launch_pos, self._game.laser_types[laser_type],