comparison pytouhou/vm/eclrunner.py @ 271:80e73b8245a4

Fix visibility handling
author Thibaut Girka <thib@sitedethib.com>
date Tue, 24 Jan 2012 00:56:31 +0100
parents 7a9135b88853
children b21acb12bed1
comparison
equal deleted inserted replaced
270:7a9135b88853 271:80e73b8245a4
983 983
984 984
985 @instruction(132) 985 @instruction(132)
986 def set_visible(self, value): 986 def set_visible(self, value):
987 self._enemy._visible = not bool(value) 987 self._enemy._visible = not bool(value)
988 if not self._enemy._visible:
989 if self._enemy._sprite:
990 self._enemy._sprite._removed = True
991 self._enemy.aux_anm = 8 * [None]
992 988
993 989
994 @instruction(131) 990 @instruction(131)
995 def set_difficulty_coeffs(self, speed_a, speed_b, nb_a, nb_b, shots_a, shots_b): 991 def set_difficulty_coeffs(self, speed_a, speed_b, nb_a, nb_b, shots_a, shots_b):
996 self._enemy.difficulty_coeffs = (speed_a, speed_b, nb_a, nb_b, shots_a, shots_b) 992 self._enemy.difficulty_coeffs = (speed_a, speed_b, nb_a, nb_b, shots_a, shots_b)