diff pytouhou/game/enemy.py @ 120:4300a832f033

Small refactoring and massive performance improvement
author Thibaut Girka <thib@sitedethib.com>
date Thu, 08 Sep 2011 12:46:05 +0200
parents e93a7ed4f203
children d1c82d43bbf3
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -240,8 +240,8 @@ class Enemy(object):
             if self._sprite._removed:
                 self._sprite = None
             else:
-                self._sprite.update(angle_base=self.angle,
-                                    force_rotation=self.automatic_orientation)
+                self._sprite.update_orientation(self.angle,
+                                                self.automatic_orientation)
 
 
         if self.bullet_launch_interval != 0: