Mercurial > touhou
diff pytouhou/game/game.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 | 11ab06f4c4c6 |
children | c7f0fd9d2145 |
line wrap: on
line diff
--- a/pytouhou/game/game.py +++ b/pytouhou/game/game.py @@ -61,8 +61,8 @@ class Game(object): self.ecl_runner = ECLMainRunner(ecl, self.new_enemy, self.game_state) - def new_enemy(self, pos, life, instr_type): - enemy = Enemy(pos, life, instr_type, self.enm_anm_wrapper, self.game_state) + def new_enemy(self, pos, life, instr_type, pop_enemy): + enemy = Enemy(pos, life, instr_type, self.enm_anm_wrapper, self.game_state, pop_enemy) self.enemies.append(enemy) return enemy