Mercurial > touhou
comparison pytouhou/game/sprite.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 | a03d7a94b997 |
children | b3bd421bb895 |
comparison
equal
deleted
inserted
replaced
71:a03d7a94b997 | 72:6a08f44fa01b |
---|---|
44 self._changed = False | 44 self._changed = False |
45 | 45 |
46 self.scale_interpolator = None | 46 self.scale_interpolator = None |
47 self.fade_interpolator = None | 47 self.fade_interpolator = None |
48 self.offset_interpolator = None | 48 self.offset_interpolator = None |
49 | |
50 self.blendfunc = 0 # 0 = Normal, 1 = saturate #TODO: proper constants | |
49 | 51 |
50 self.texcoords = (0, 0, 0, 0) # x, y, width, height | 52 self.texcoords = (0, 0, 0, 0) # x, y, width, height |
51 self.dest_offset = (0., 0., 0.) | 53 self.dest_offset = (0., 0., 0.) |
52 self.allow_dest_offset = False | 54 self.allow_dest_offset = False |
53 self.texoffsets = (0., 0.) | 55 self.texoffsets = (0., 0.) |