Mercurial > touhou
comparison pytouhou/game/player.pyx @ 574:94229756abd9
Give extra lives to the player once she has reached a certain score, and increment the default score on continue.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 26 Jul 2014 13:07:26 +0200 |
parents | e35bef07290d |
children | e35a083d4208 |
comparison
equal
deleted
inserted
replaced
573:4233c1c01d90 | 574:94229756abd9 |
---|---|
260 | 260 |
261 for i in xrange(5): | 261 for i in xrange(5): |
262 self._game.drop_bonus(self.x, self.y, 4, player=self, | 262 self._game.drop_bonus(self.x, self.y, 4, player=self, |
263 end_pos=(self._game.prng.rand_double() * 288 + 48, | 263 end_pos=(self._game.prng.rand_double() * 288 + 48, |
264 self._game.prng.rand_double() * 192 - 64)) | 264 self._game.prng.rand_double() * 192 - 64)) |
265 self.score = 0 | 265 self.score = self.continues_used if self.continues_used <= 9 else 9 |
266 self.effective_score = 0 | 266 self.effective_score = 0 |
267 self.lives = 2 #TODO: use the right default. | 267 self.lives = 2 #TODO: use the right default. |
268 self.bombs = 3 #TODO: use the right default. | 268 self.bombs = 3 #TODO: use the right default. |
269 self.power = 0 | 269 self.power = 0 |
270 | 270 |