Mercurial > touhou
comparison pytouhou/game/enemy.py @ 171:2f3665a77f11
Add support for the last unknown value of the enemy spawning.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 20 Oct 2011 06:34:35 -0700 |
parents | e483b5a7e84b |
children | 35d850502d1f |
comparison
equal
deleted
inserted
replaced
170:e7902309305c | 171:2f3665a77f11 |
---|---|
38 if self._sprite._removed: | 38 if self._sprite._removed: |
39 self._sprite = None | 39 self._sprite = None |
40 | 40 |
41 | 41 |
42 class Enemy(object): | 42 class Enemy(object): |
43 def __init__(self, pos, life, _type, bonus_dropped, anm_wrapper, game): | 43 def __init__(self, pos, life, _type, bonus_dropped, die_score, anm_wrapper, game): |
44 self._game = game | 44 self._game = game |
45 self._anm_wrapper = anm_wrapper | 45 self._anm_wrapper = anm_wrapper |
46 self._sprite = None | 46 self._sprite = None |
47 self._anmrunner = None | 47 self._anmrunner = None |
48 self._removed = False | 48 self._removed = False |
49 self._type = _type | 49 self._type = _type |
50 self._bonus_dropped = bonus_dropped | 50 self._bonus_dropped = bonus_dropped |
51 self._die_score = die_score #TODO: use it | |
51 self._was_visible = False | 52 self._was_visible = False |
52 | 53 |
53 self.frame = 0 | 54 self.frame = 0 |
54 | 55 |
55 self.x, self.y = pos | 56 self.x, self.y = pos |