Mercurial > touhou
diff pytouhou/game/enemy.py @ 183:b6d7ce644f34
Implement two new ECL instructions.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 26 Oct 2011 02:27:00 -0700 |
parents | 20843875ad8f |
children | 54eb6b254b7b |
line wrap: on
line diff
--- a/pytouhou/game/enemy.py +++ b/pytouhou/game/enemy.py @@ -28,6 +28,7 @@ class Enemy(object): self._sprite = None self._anmrunner = None self._removed = False + self._visible = True self._type = _type self._bonus_dropped = bonus_dropped self._die_score = die_score #TODO: use it @@ -101,7 +102,6 @@ class Enemy(object): self.bullet_launch_interval = int(value) self.bullet_launch_timer = int(value * start) - print(self.bullet_launch_interval, self.bullet_launch_timer) def fire(self): @@ -280,7 +280,7 @@ class Enemy(object): if self._anmrunner and not self._anmrunner.run_frame(): self._anmrunner = None - if self._sprite: + if self._sprite and self._visible: if self._sprite._removed: self._sprite = None else: