Mercurial > touhou
diff pytouhou/game/game.pyx @ 487:711c75115675
Various netplay-related fixes.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 28 Sep 2013 20:11:41 +0200 |
parents | 2f53be1b2f60 |
children | 887de1309491 |
line wrap: on
line diff
--- a/pytouhou/game/game.pyx +++ b/pytouhou/game/game.pyx @@ -179,7 +179,6 @@ cdef class Game: cdef Player player cdef Bullet bullet - player = self.players[0] #TODO score = 0 bonus = 2000 for bullet in self.bullets: @@ -187,9 +186,12 @@ cdef class Game: score += bonus bonus += 10 self.bullets = [] - player.state.score += score #TODO: display the final bonus score. + #TODO: do we really want to give it to each player? + for player in self.players: + player.state.score += score + cpdef kill_enemies(self): cdef Enemy enemy