Mercurial > touhou
comparison pytouhou/vm/eclrunner.py @ 168:b96d835c0807
Implement Cirno’s 雪符「ダイアモンドブリザード」 spellcard.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 18 Oct 2011 14:03:18 -0700 |
parents | dcf32488a2c9 |
children | c4b4f7c068f2 |
comparison
equal
deleted
inserted
replaced
167:e483b5a7e84b | 168:b96d835c0807 |
---|---|
854 else: | 854 else: |
855 for bullet in self._game.bullets: | 855 for bullet in self._game.bullets: |
856 bullet.speed = 2.0 #TODO | 856 bullet.speed = 2.0 #TODO |
857 bullet.angle = self._game.prng.rand_double() * pi #TODO | 857 bullet.angle = self._game.prng.rand_double() * pi #TODO |
858 bullet.delta = (cos(bullet.angle) * bullet.speed, sin(bullet.angle) * bullet.speed) | 858 bullet.delta = (cos(bullet.angle) * bullet.speed, sin(bullet.angle) * bullet.speed) |
859 elif function == 1: # Cirno | |
860 self._enemy.bullet_launch_offset = ( | |
861 self._game.prng.rand_uint16() % arg - arg / 2, | |
862 self._game.prng.rand_uint16() % arg - arg / 2) | |
863 self._enemy.fire() | |
859 else: | 864 else: |
860 logger.warn("Unimplemented special function %d!", function) | 865 logger.warn("Unimplemented special function %d!", function) |
861 | 866 |
862 | 867 |
863 @instruction(123) | 868 @instruction(123) |