Mercurial > touhou
diff pytouhou/game/enemy.py @ 134:e9ac3640280b
Add support for enemy spawnling enemies.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 16 Sep 2011 11:21:33 -0700 |
parents | fba45c37ec99 |
children | c53d91300c1c |
line wrap: on
line diff
--- a/pytouhou/game/enemy.py +++ b/pytouhou/game/enemy.py @@ -22,7 +22,7 @@ from math import cos, sin, atan2, pi class Enemy(object): - def __init__(self, pos, life, _type, anm_wrapper, game_state): + def __init__(self, pos, life, _type, anm_wrapper, game_state, pop_enemy): self._game_state = game_state self._anm_wrapper = anm_wrapper self._sprite = None @@ -69,6 +69,8 @@ class Enemy(object): self.hitbox = (0, 0) self.screen_box = None + self.pop_enemy = pop_enemy + def set_bullet_attributes(self, type_, anim, sprite_idx_offset, bullets_per_shot, number_of_shots, speed, speed2,