Mercurial > touhou
diff pytouhou/game/player.py @ 198:13918723d1bc
Modify difficulty when it has to.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 30 Oct 2011 11:31:19 -0700 |
parents | e1bc8c4cbb1a |
children | 8ec34c56fed0 |
line wrap: on
line diff
--- a/pytouhou/game/player.py +++ b/pytouhou/game/player.py @@ -93,6 +93,7 @@ class Player(object): if not self.state.invulnerable_time and not self.death_time and self.state.touchable: # Border Between Life and Death self.death_time = self._game.frame self._game.new_death((self.state.x, self.state.y), 2) + self._game.modify_difficulty(-1600) for i in range(16): self._game.new_particle((self.state.x, self.state.y), 2, 4., 256) #TODO: find the real size and range.