diff pytouhou/game/enemymanager.py @ 72:6a08f44fa01b

Handle a few more ANM instructions. pytouhou.game.background needs some serious refactoring.
author Thibaut Girka <thib@sitedethib.com>
date Sun, 28 Aug 2011 01:23:11 +0200
parents a142e57218a0
children e4af16a019d3
line wrap: on
line diff
--- a/pytouhou/game/enemymanager.py
+++ b/pytouhou/game/enemymanager.py
@@ -142,6 +142,7 @@ class Enemy(object):
     def get_objects_by_texture(self):
         objects_by_texture = {}
         key = self._sprite.anm.first_name, self._sprite.anm.secondary_name
+        key = (key, self._sprite.blendfunc)
         if not key in objects_by_texture:
             objects_by_texture[key] = (0, [], [], [])
         vertices = tuple((x + self.x, y + self.y, z) for x, y, z in self._sprite._vertices)