comparison 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
comparison
equal deleted inserted replaced
197:e1bc8c4cbb1a 198:13918723d1bc
91 91
92 def collide(self): 92 def collide(self):
93 if not self.state.invulnerable_time and not self.death_time and self.state.touchable: # Border Between Life and Death 93 if not self.state.invulnerable_time and not self.death_time and self.state.touchable: # Border Between Life and Death
94 self.death_time = self._game.frame 94 self.death_time = self._game.frame
95 self._game.new_death((self.state.x, self.state.y), 2) 95 self._game.new_death((self.state.x, self.state.y), 2)
96 self._game.modify_difficulty(-1600)
96 for i in range(16): 97 for i in range(16):
97 self._game.new_particle((self.state.x, self.state.y), 2, 4., 256) #TODO: find the real size and range. 98 self._game.new_particle((self.state.x, self.state.y), 2, 4., 256) #TODO: find the real size and range.
98 99
99 100
100 def update(self, keystate): 101 def update(self, keystate):