Mercurial > touhou
diff pytouhou/game/background.py @ 17:d940d004b840
Make game.sprite.Sprite use its own frame counter.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Tue, 09 Aug 2011 11:40:13 +0200 |
parents | 66ce9bb440ac |
children | bf225780973f |
line wrap: on
line diff
--- a/pytouhou/game/background.py +++ b/pytouhou/game/background.py @@ -50,7 +50,7 @@ class Background(object): faces = [] for script_index, ox, oy, oz, width_override, height_override in obj.quads: sprite = Sprite(self.anim, script_index) - sprite.update(0, width_override, height_override) + sprite.update(width_override, height_override) uvs, vertices = sprite._uvs, tuple((x + ox, y + oy, z + oz) for x, y, z in sprite._vertices) faces.append((vertices, uvs)) self.objects.append(faces)