Mercurial > touhou
comparison pytouhou/vm/anmrunner.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 | f5f9b5eb69a3 |
comparison
equal
deleted
inserted
replaced
71:a03d7a94b997 | 72:6a08f44fa01b |
---|---|
120 | 120 |
121 @instruction(12) | 121 @instruction(12) |
122 def fade(self, new_alpha, duration): | 122 def fade(self, new_alpha, duration): |
123 self._sprite.fade(duration, new_alpha, lambda x: x) #TODO: formula | 123 self._sprite.fade(duration, new_alpha, lambda x: x) #TODO: formula |
124 | 124 |
125 | |
126 @instruction(13) | |
127 def set_blendfunc_alphablend(self): | |
128 self._sprite.blendfunc = 1 | |
129 | |
130 | |
131 @instruction(14) | |
132 def set_blendfunc_add(self): | |
133 self._sprite.blendfunc = 0 #TODO | |
134 | |
135 | |
125 @instruction(15) | 136 @instruction(15) |
126 @instruction(21) #TODO | 137 @instruction(21) #TODO |
127 def keep_still(self): | 138 def keep_still(self): |
128 self._running = False | 139 self._running = False |
129 | 140 |