Mercurial > touhou
diff pytouhou/game/background.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 | 630e9045e851 |
line wrap: on
line diff
--- a/pytouhou/game/background.py +++ b/pytouhou/game/background.py @@ -97,7 +97,7 @@ class Background(object): colors = struct.pack(colors_format, *chain(*colors)) assert len(self.anm_wrapper.anm_files) == 1 #TODO anm = self.anm_wrapper.anm_files[0] - self.objects_by_texture = {(anm.first_name, anm.secondary_name): (nb_vertices, vertices, uvs, colors)} + self.objects_by_texture = {((anm.first_name, anm.secondary_name), 0): (nb_vertices, vertices, uvs, colors)} #TODO: blendfunc for frame_num, message_type, args in self.stage.script: if frame_num == frame: