Mercurial > touhou
diff pytouhou/game/laser.py @ 281:13dcde917083
Fix bullet spawning along lasers.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Fri, 10 Feb 2012 11:01:11 +0100 |
parents | 3539520fff93 |
children | 18e4ed141dd8 |
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.