changeset 319:9a4119e2cc74

Use Enemy.die_score.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 17 May 2012 14:19:00 +0200
parents 1366cefd0334
children 1a4ffdda8735
files pytouhou/game/enemy.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -35,7 +35,7 @@ class Enemy(object):
         self.visible = True
         self.was_visible = False
         self.bonus_dropped = bonus_dropped
-        self.die_score = die_score #TODO: use it
+        self.die_score = die_score
 
         self.frame = 0
 
@@ -347,6 +347,9 @@ class Enemy(object):
 
             self.die_anim()
 
+            #TODO: verify if the score is added with all the different flags.
+            self._game.players[0].state.score += self.die_score #TODO: better distribution amongst the players.
+
             if death_flags < 4:
                 if self.bonus_dropped > -1:
                     self.drop_particles(7, 0)