Mercurial > touhou
comparison pytouhou/game/game.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 | dcf32488a2c9 |
children | ea2ad94c33a0 |
comparison
equal
deleted
inserted
replaced
170:e7902309305c | 171:2f3665a77f11 |
---|---|
68 item_type = self.item_types[6] | 68 item_type = self.item_types[6] |
69 self.items.extend(Item((bullet.x, bullet.y), item_type, self, player=player) for bullet in self.bullets) | 69 self.items.extend(Item((bullet.x, bullet.y), item_type, self, player=player) for bullet in self.bullets) |
70 self.bullets = [] | 70 self.bullets = [] |
71 | 71 |
72 | 72 |
73 def new_enemy(self, pos, life, instr_type, bonus_dropped): | 73 def new_enemy(self, pos, life, instr_type, bonus_dropped, die_score): |
74 enemy = Enemy(pos, life, instr_type, bonus_dropped, self.enm_anm_wrapper, self) | 74 enemy = Enemy(pos, life, instr_type, bonus_dropped, die_score, self.enm_anm_wrapper, self) |
75 self.enemies.append(enemy) | 75 self.enemies.append(enemy) |
76 return enemy | 76 return enemy |
77 | 77 |
78 | 78 |
79 def run_iter(self, keystate): | 79 def run_iter(self, keystate): |