Mercurial > touhou
diff 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 |
line wrap: on
line diff
--- a/pytouhou/vm/anmrunner.py +++ b/pytouhou/vm/anmrunner.py @@ -122,6 +122,17 @@ class ANMRunner(object): def fade(self, new_alpha, duration): self._sprite.fade(duration, new_alpha, lambda x: x) #TODO: formula + + @instruction(13) + def set_blendfunc_alphablend(self): + self._sprite.blendfunc = 1 + + + @instruction(14) + def set_blendfunc_add(self): + self._sprite.blendfunc = 0 #TODO + + @instruction(15) @instruction(21) #TODO def keep_still(self):