comparison pytouhou/game/player.py @ 331:1b4f04b08729

Add the story mode.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 30 Jun 2012 19:37:21 +0200
parents 56523a16db1d
children 2350147cf043
comparison
equal deleted inserted replaced
330:16ed1ab1e14b 331:1b4f04b08729
42 self.invulnerable_time = 240 42 self.invulnerable_time = 240
43 self.touchable = True 43 self.touchable = True
44 self.focused = False 44 self.focused = False
45 45
46 self.power_bonus = 0 # Never goes over 30. 46 self.power_bonus = 0 # Never goes over 30.
47
48
49 def copy(self):
50 return PlayerState(self.character, self.score,
51 self.power, self.lives, self.bombs)
47 52
48 53
49 class Player(object): 54 class Player(object):
50 def __init__(self, state, game, anm_wrapper): 55 def __init__(self, state, game, anm_wrapper):
51 self._game = game 56 self._game = game