comparison pytouhou/vm/eclrunner.py @ 279:3539520fff93

Fix sprite rotation/translation. ANM translations are done *after* rotation, lasers are handled differently.
author Thibaut Girka <thib@sitedethib.com>
date Wed, 08 Feb 2012 18:43:39 +0100
parents 754ff6452d7e
children b6c068c8f7f2
comparison
equal deleted inserted replaced
278:615c0bb6064b 279:3539520fff93
765 try: 765 try:
766 laser = self._enemy.laser_by_id[laser_id] 766 laser = self._enemy.laser_by_id[laser_id]
767 except KeyError: 767 except KeyError:
768 pass #TODO 768 pass #TODO
769 else: 769 else:
770 laser.x, laser.y = self._enemy.x + ox, self._enemy.y + oy 770 laser.base_pos = self._enemy.x + ox, self._enemy.y + oy
771 771
772 772
773 @instruction(92) 773 @instruction(92)
774 def cancel_laser(self, laser_id): 774 def cancel_laser(self, laser_id):
775 try: 775 try: