Mercurial > touhou
comparison pytouhou/vm/eclrunner.py @ 269:729382f57ad0
Fix set_visible.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 23 Jan 2012 23:00:55 +0100 |
parents | dd621ad72beb |
children | 7a9135b88853 |
comparison
equal
deleted
inserted
replaced
268:dd621ad72beb | 269:729382f57ad0 |
---|---|
979 self._enemy.aux_anm[number]._anmrunner.interrupt(event) | 979 self._enemy.aux_anm[number]._anmrunner.interrupt(event) |
980 | 980 |
981 | 981 |
982 @instruction(132) | 982 @instruction(132) |
983 def set_visible(self, value): | 983 def set_visible(self, value): |
984 self._enemy._visible = bool(value) | 984 self._enemy._visible = not bool(value) |
985 if self._enemy._sprite: | 985 if not self._enemy._visible: |
986 self._enemy._sprite._removed = bool(value) | 986 if self._enemy._sprite: |
987 self._enemy._sprite._removed = True | |
988 self._enemy.aux_anm = 8 * [None] | |
987 | 989 |
988 | 990 |
989 @instruction(131) | 991 @instruction(131) |
990 def set_difficulty_coeffs(self, speed_a, speed_b, nb_a, nb_b, shots_a, shots_b): | 992 def set_difficulty_coeffs(self, speed_a, speed_b, nb_a, nb_b, shots_a, shots_b): |
991 self._enemy.difficulty_coeffs = (speed_a, speed_b, nb_a, nb_b, shots_a, shots_b) | 993 self._enemy.difficulty_coeffs = (speed_a, speed_b, nb_a, nb_b, shots_a, shots_b) |