Mercurial > touhou
comparison pytouhou/vm/eclrunner.py @ 295:2a60642e8892
Fix Remilia’s bat form.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 01 Mar 2012 19:44:35 +0100 |
parents | f6b8483a990d |
children | c074783d0847 |
comparison
equal
deleted
inserted
replaced
294:94c636f8f863 | 295:2a60642e8892 |
---|---|
503 | 503 |
504 | 504 |
505 @instruction(46) | 505 @instruction(46) |
506 def set_rotation_speed(self, speed): | 506 def set_rotation_speed(self, speed): |
507 self._enemy.update_mode = 0 | 507 self._enemy.update_mode = 0 |
508 self._enemy.rotation_speed = speed | 508 self._enemy.rotation_speed = self._getval(speed) |
509 | 509 |
510 | 510 |
511 @instruction(47) | 511 @instruction(47) |
512 def set_speed(self, speed): | 512 def set_speed(self, speed): |
513 self._enemy.update_mode = 0 | 513 self._enemy.update_mode = 0 |
514 self._enemy.speed = speed | 514 self._enemy.speed = self._getval(speed) |
515 | 515 |
516 | 516 |
517 @instruction(48) | 517 @instruction(48) |
518 def set_acceleration(self, acceleration): | 518 def set_acceleration(self, acceleration): |
519 self._enemy.update_mode = 0 | 519 self._enemy.update_mode = 0 |
520 self._enemy.acceleration = acceleration | 520 self._enemy.acceleration = self._getval(acceleration) |
521 | 521 |
522 | 522 |
523 @instruction(49) | 523 @instruction(49) |
524 def set_random_angle(self, min_angle, max_angle): | 524 def set_random_angle(self, min_angle, max_angle): |
525 angle = self._game.prng.rand_double() * (max_angle - min_angle) + min_angle | 525 angle = self._game.prng.rand_double() * (max_angle - min_angle) + min_angle |
850 self._enemy.set_anim(script) | 850 self._enemy.set_anim(script) |
851 | 851 |
852 | 852 |
853 @instruction(98) | 853 @instruction(98) |
854 def set_multiple_anims(self, default, end_left, end_right, left, right): | 854 def set_multiple_anims(self, default, end_left, end_right, left, right): |
855 self._enemy.movement_dependant_sprites = end_left, end_right, left, right | 855 if left == -1: |
856 self._enemy.set_anim(default) | 856 self._enemy.movement_dependant_sprites = None |
857 else: | |
858 self._enemy.movement_dependant_sprites = end_left, end_right, left, right | |
859 self._enemy.set_anim(default) | |
857 | 860 |
858 | 861 |
859 @instruction(99) | 862 @instruction(99) |
860 def set_aux_anm(self, number, script): | 863 def set_aux_anm(self, number, script): |
861 self._enemy.set_aux_anm(number, script) | 864 self._enemy.set_aux_anm(number, script) |