Mercurial > touhou
comparison pytouhou/game/game.py @ 320:1a4ffdda8735
Cancel the bullets when a boss is killed and transfer them to the score.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 23 May 2012 19:33:17 +0200 |
parents | f0be7ea62330 |
children | 61adb5453e46 |
comparison
equal
deleted
inserted
replaced
319:9a4119e2cc74 | 320:1a4ffdda8735 |
---|---|
139 for pos in laser.get_bullets_pos()) | 139 for pos in laser.get_bullets_pos()) |
140 laser.cancel() | 140 laser.cancel() |
141 self.bullets = [] | 141 self.bullets = [] |
142 | 142 |
143 | 143 |
144 def change_bullets_into_bonus(self): | |
145 player = self.players[0] #TODO | |
146 score = 0 | |
147 bonus = 2000 | |
148 for bullet in self.bullets: | |
149 #TODO: display the labels. | |
150 score += bonus | |
151 bonus += 10 | |
152 self.bullets = [] | |
153 player.state.score += score | |
154 #TODO: display the final bonus score. | |
155 | |
156 | |
144 def new_effect(self, pos, anim, anm_wrapper=None): | 157 def new_effect(self, pos, anim, anm_wrapper=None): |
145 self.effects.append(Effect(pos, anim, anm_wrapper or self.etama4)) | 158 self.effects.append(Effect(pos, anim, anm_wrapper or self.etama4)) |
146 | 159 |
147 | 160 |
148 def new_particle(self, pos, color, size, amp): | 161 def new_particle(self, pos, color, size, amp): |