Mercurial > touhou
comparison pytouhou/vm/anmrunner.py @ 294:94c636f8f863
Add player lasers for MarisaB.
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
|---|---|
| date | Tue, 21 Feb 2012 14:28:38 +0100 |
| parents | d3ba32a9096e |
| children | f3099ebf4f61 |
comparison
equal
deleted
inserted
replaced
| 293:ab618c2bbce8 | 294:94c636f8f863 |
|---|---|
| 135 self._sprite.alpha = alpha % 256 #TODO | 135 self._sprite.alpha = alpha % 256 #TODO |
| 136 | 136 |
| 137 | 137 |
| 138 @instruction(4) | 138 @instruction(4) |
| 139 def set_color(self, b, g, r): | 139 def set_color(self, b, g, r): |
| 140 self._sprite.color = (r, g, b) | 140 if not self._sprite.fade_interpolator: |
| 141 self._sprite.color = (r, g, b) | |
| 141 | 142 |
| 142 | 143 |
| 143 @instruction(5) | 144 @instruction(5) |
| 144 def jump(self, instruction_pointer): | 145 def jump(self, instruction_pointer): |
| 145 #TODO: is that really how it works? | 146 #TODO: is that really how it works? |
