comparison pytouhou/vm/eclrunner.py @ 270:7a9135b88853

Partially fix some of Flandre's spellcards.
author Thibaut Girka <thib@sitedethib.com>
date Tue, 24 Jan 2012 00:19:23 +0100
parents 729382f57ad0
children 80e73b8245a4
comparison
equal deleted inserted replaced
269:729382f57ad0 270:7a9135b88853
70 if x < -990: #102h.exe@0x411820 70 if x < -990: #102h.exe@0x411820
71 x = self._game.prng.rand_double() * 368 71 x = self._game.prng.rand_double() * 368
72 if y < -990: #102h.exe@0x41184b 72 if y < -990: #102h.exe@0x41184b
73 y = self._game.prng.rand_double() * 416 73 y = self._game.prng.rand_double() * 416
74 if z < -990: #102h.exe@0x411881 74 if z < -990: #102h.exe@0x411881
75 y = self._game.prng.rand_double() * 800 75 z = self._game.prng.rand_double() * 800
76 enemy = self._game.new_enemy((x, y), life, instr_type, bonus_dropped, die_score) 76 enemy = self._game.new_enemy((x, y, z), life, instr_type, bonus_dropped, die_score)
77 process = ECLRunner(self._ecl, sub, enemy, self._game) 77 process = ECLRunner(self._ecl, sub, enemy, self._game)
78 self.processes.append(process) 78 self.processes.append(process)
79 process.run_iteration() 79 process.run_iteration()
80 80
81 81
468 468
469 469
470 @instruction(45) 470 @instruction(45)
471 def set_angle_speed(self, angle, speed): 471 def set_angle_speed(self, angle, speed):
472 self._enemy.update_mode = 0 472 self._enemy.update_mode = 0
473 self._enemy.angle, self._enemy.speed = angle, speed 473 self._enemy.angle, self._enemy.speed = self._getval(angle), self._getval(speed)
474 474
475 475
476 @instruction(46) 476 @instruction(46)
477 def set_rotation_speed(self, speed): 477 def set_rotation_speed(self, speed):
478 self._enemy.update_mode = 0 478 self._enemy.update_mode = 0
735 self._game.disable_effect() 735 self._game.disable_effect()
736 736
737 737
738 @instruction(95) 738 @instruction(95)
739 def pop_enemy(self, sub, x, y, z, life, bonus_dropped, die_score): 739 def pop_enemy(self, sub, x, y, z, life, bonus_dropped, die_score):
740 self._game.ecl_runner._pop_enemy(sub, 0, self._getval(x), self._getval(y), 0, life, bonus_dropped, die_score) 740 self._game.ecl_runner._pop_enemy(sub, 0, self._getval(x),
741 self._getval(y),
742 self._getval(z),
743 life, bonus_dropped, die_score)
741 744
742 745
743 @instruction(96) 746 @instruction(96)
744 def kill_enemies(self): 747 def kill_enemies(self):
745 for proc in self._game.ecl_runner.processes: 748 for proc in self._game.ecl_runner.processes: