changeset 281:13dcde917083

Fix bullet spawning along lasers.
author Thibaut Girka <thib@sitedethib.com>
date Fri, 10 Feb 2012 11:01:11 +0100
parents e04c3e1957c8
children dbb1a86c0235
files pytouhou/game/laser.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/game/laser.py
+++ b/pytouhou/game/laser.py
@@ -75,7 +75,7 @@ class Laser(object):
         offset = self.end_offset - length
         dx, dy = cos(self.angle), sin(self.angle)
         while self.start_offset <= offset < self.end_offset:
-            yield (self.x + offset * dx, self.y + offset * dy)
+            yield (self.base_pos[0] + offset * dx, self.base_pos[1] + offset * dy)
             offset += 48.