Mercurial > touhou
diff pytouhou/game/game.py @ 328:56523a16db1d
Fix some replay synchronization issues and update the TODO.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 21 Jun 2012 19:59:41 +0200 |
parents | 13201d90bb22 |
children | 2350147cf043 |
line wrap: on
line diff
--- a/pytouhou/game/game.py +++ b/pytouhou/game/game.py @@ -259,6 +259,10 @@ class Game(object): def update_players(self, keystate): if self.time_stop: return None + + for bullet in self.players_bullets: + bullet.update() + for player in self.players: player.update(keystate) #TODO: differentiate keystates (multiplayer mode) if player.state.x < 8.: @@ -270,9 +274,6 @@ class Game(object): if player.state.y > self.height - 16: player.state.y = self.height -16 - for bullet in self.players_bullets: - bullet.update() - #XXX: Why 78910? Is it really the right value? player.state.effective_score = min(player.state.effective_score + 78910, player.state.score)