diff pytouhou/game/enemy.py @ 309:14c9aca8e274

Implement Remilia's laser webs.
author Thibaut Girka <thib@sitedethib.com>
date Wed, 14 Mar 2012 11:28:15 +0100
parents 5930b33a0370
children 550ec10cccbc
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -168,8 +168,9 @@ class Enemy(object):
     def new_laser(self, variant, laser_type, sprite_idx_offset, angle, speed,
                   start_offset, end_offset, max_length, width,
                   start_duration, duration, end_duration,
-                  grazing_delay, grazing_extra_duration, unknown):
-        ox, oy = self.bullet_launch_offset
+                  grazing_delay, grazing_extra_duration, unknown,
+                  offset=None):
+        ox, oy = offset or 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)