diff pytouhou/game/player.py @ 197:e1bc8c4cbb1a

Do the right action when collecting an item.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 30 Oct 2011 11:29:08 -0700
parents 1e501e3b6645
children 13918723d1bc
line wrap: on
line diff
--- a/pytouhou/game/player.py
+++ b/pytouhou/game/player.py
@@ -41,6 +41,8 @@ class PlayerState(object):
         self.invulnerable_time = 240
         self.touchable = True
 
+        self.power_bonus = 0 # Never goes over 30.
+
 
 class Player(object):
     def __init__(self, state, game, anm_wrapper, speed=4., hitbox_size=2.5, graze_hitbox_size=42.):
@@ -95,12 +97,6 @@ class Player(object):
                 self._game.new_particle((self.state.x, self.state.y), 2, 4., 256) #TODO: find the real size and range.
 
 
-    def collect(self, item):
-        #TODO
-        self.state.score += item._item_type.score
-        item._removed = True
-
-
     def update(self, keystate):
         if self.death_time == 0 or self._game.frame - self.death_time > 60:
             try: