Mercurial > touhou
comparison pytouhou/vm/eclrunner.py @ 471:06f0eeb519bb
Make Laser and Orb extension types, and use that where possible.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 16 Sep 2013 18:42:04 +0200 |
parents | 4ccc47828002 |
children | 59bd29568753 |
comparison
equal
deleted
inserted
replaced
470:98995d8ac744 | 471:06f0eeb519bb |
---|---|
726 try: | 726 try: |
727 laser = self._enemy.laser_by_id[laser_id] | 727 laser = self._enemy.laser_by_id[laser_id] |
728 except KeyError: | 728 except KeyError: |
729 pass #TODO | 729 pass #TODO |
730 else: | 730 else: |
731 laser.base_pos = self._enemy.x + ox, self._enemy.y + oy | 731 laser.set_base_pos(self._enemy.x + ox, self._enemy.y + oy) |
732 | 732 |
733 | 733 |
734 @instruction(92) | 734 @instruction(92) |
735 def cancel_laser(self, laser_id): | 735 def cancel_laser(self, laser_id): |
736 try: | 736 try: |