comparison pytouhou/game/game.py @ 154:364935f6e313

Implement enemy killing.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 09 Oct 2011 16:55:18 -0700
parents 37df8c618c2e
children ebfd328e700c
comparison
equal deleted inserted replaced
153:37df8c618c2e 154:364935f6e313
63 item_type = self.item_types[6] 63 item_type = self.item_types[6]
64 self.items.extend(Item((bullet.x, bullet.y), item_type, self, player=player) for bullet in self.bullets) 64 self.items.extend(Item((bullet.x, bullet.y), item_type, self, player=player) for bullet in self.bullets)
65 self.bullets = [] 65 self.bullets = []
66 66
67 67
68 def new_enemy(self, pos, life, instr_type, pop_enemy): 68 def new_enemy(self, pos, life, instr_type, bonus_dropped, pop_enemy):
69 enemy = Enemy(pos, life, instr_type, self.enm_anm_wrapper, self, pop_enemy) 69 enemy = Enemy(pos, life, instr_type, bonus_dropped, self.enm_anm_wrapper, self, pop_enemy)
70 self.enemies.append(enemy) 70 self.enemies.append(enemy)
71 return enemy 71 return enemy
72 72
73 73
74 def run_iter(self, keystate): 74 def run_iter(self, keystate):