comparison pytouhou/vm/eclrunner.py @ 360:d55a1843b2a7

Fix Flandre's QED: Ripples of 495 years
author Thibaut Girka <thib@sitedethib.com>
date Mon, 09 Jul 2012 21:10:38 +0200
parents 130d258217f3
children b55939b4b40d
comparison
equal deleted inserted replaced
359:130d258217f3 360:d55a1843b2a7
1057 for pos in laser.get_bullets_pos(): 1057 for pos in laser.get_bullets_pos():
1058 self._enemy.fire(launch_pos=pos) 1058 self._enemy.fire(launch_pos=pos)
1059 else: 1059 else:
1060 pass #TODO: check 1060 pass #TODO: check
1061 elif function == 16: # QED: Ripples of 495 years 1061 elif function == 16: # QED: Ripples of 495 years
1062 #TODO: the rythm seems to be really wrong
1063 # Indeed, Flandre is supposed to start slowly, and those values
1064 # match the craziest parts of the spellcard
1065 if arg == 0: 1062 if arg == 0:
1066 self.variables[9] = 40 #TODO: is that all? 1063 self.variables[9] = 40 + self._enemy.life // 25
1067 self.variables[7] = 2. #TODO: check value. is that all? 1064 self.variables[7] = 2. - self._enemy.life / 6000.
1068 else: 1065 else:
1069 #TODO: check 1066 #TODO: I'm really not sure about that...
1070 self.variables[6] = self._game.prng.rand_double() * (self._game.width - 64.) + 32. 1067 self.variables[6] = self._game.prng.rand_double() * (self._game.width - 64.) + 32.
1071 self.variables[7] = self._game.prng.rand_double() * (self._game.width / 2. - 64.) + 32. 1068 self.variables[7] = self._game.prng.rand_double() * (self._game.width / 2. - 64.) + 32.
1072 else: 1069 else:
1073 logger.warn("Unimplemented special function %d!", function) 1070 logger.warn("Unimplemented special function %d!", function)
1074 1071