Mercurial > touhou
diff 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 |
line wrap: on
line diff
--- a/pytouhou/game/game.py +++ b/pytouhou/game/game.py @@ -141,6 +141,19 @@ class Game(object): self.bullets = [] + def change_bullets_into_bonus(self): + player = self.players[0] #TODO + score = 0 + bonus = 2000 + for bullet in self.bullets: + #TODO: display the labels. + score += bonus + bonus += 10 + self.bullets = [] + player.state.score += score + #TODO: display the final bonus score. + + def new_effect(self, pos, anim, anm_wrapper=None): self.effects.append(Effect(pos, anim, anm_wrapper or self.etama4))