Mercurial > touhou
comparison pytouhou/vm/eclrunner.py @ 273:595b227886b1
Partially implement hardcoded function 16, used for QED: ripples of 495 years
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Tue, 24 Jan 2012 23:26:53 +0100 |
parents | b21acb12bed1 |
children | f037bca24f2d |
comparison
equal
deleted
inserted
replaced
272:b21acb12bed1 | 273:595b227886b1 |
---|---|
956 bullets_per_shot, number_of_shots, | 956 bullets_per_shot, number_of_shots, |
957 speed, speed2, | 957 speed, speed2, |
958 self._getval(-10006) + _angle, angle, flags) | 958 self._getval(-10006) + _angle, angle, flags) |
959 self._enemy.fire(launch_pos=launch_pos, | 959 self._enemy.fire(launch_pos=launch_pos, |
960 bullet_attributes=bullet_attributes) | 960 bullet_attributes=bullet_attributes) |
961 elif function == 16: # QED: Ripples of 495 years | |
962 #TODO: the rythm seems to be really wrong | |
963 # Indeed, Flandre is supposed to start slowly, and those values | |
964 # match the craziest parts of the spellcard | |
965 if arg == 0: | |
966 self.variables[9] = 40 #TODO: is that all? | |
967 self.variables[7] = 2. #TODO: check value. is that all? | |
968 else: | |
969 #TODO: check | |
970 self.variables[6] = self._game.prng.rand_double() * (self._game.width - 64.) + 32. | |
971 self.variables[7] = self._game.prng.rand_double() * (self._game.width / 2. - 64.) + 32. | |
961 else: | 972 else: |
962 logger.warn("Unimplemented special function %d!", function) | 973 logger.warn("Unimplemented special function %d!", function) |
963 | 974 |
964 | 975 |
965 @instruction(123) | 976 @instruction(123) |