Mercurial > touhou
diff pytouhou/game/sprite.py @ 85:3804f07d3b0e
Various optimizations
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sat, 03 Sep 2011 23:34:12 +0200 |
parents | f5f9b5eb69a3 |
children | 630e9045e851 |
line wrap: on
line diff
--- a/pytouhou/game/sprite.py +++ b/pytouhou/game/sprite.py @@ -146,6 +146,8 @@ class Sprite(object): self._colors = [(self.color[0], self.color[1], self.color[2], self.alpha)] * 4 self._uvs, self._vertices = uvs, zip(d[0], d[1], d[2]) + self._changed = any((self.scale_interpolator, self.fade_interpolator, self.offset_interpolator)) + def update(self): if self.rotations_speed_3d != (0., 0., 0.) or self.scale_speed != (0., 0.):