Mercurial > touhou
diff pytouhou/game/game.py @ 380:c25530efea3b
Replace player position in game zone right after its move; fix shots offsets at boundaries.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 07 Sep 2012 12:54:38 +0200 |
parents | 6deab6ad8be8 |
children | ac2891afb0bb |
line wrap: on
line diff
--- a/pytouhou/game/game.py +++ b/pytouhou/game/game.py @@ -283,14 +283,6 @@ class Game(object): for player in self.players: player.update(keystate) #TODO: differentiate keystates (multiplayer mode) - if player.state.x < 8.: - player.state.x = 8. - if player.state.x > self.width - 8: - player.state.x = self.width - 8 - if player.state.y < 16.: - player.state.y = 16. - if player.state.y > self.height - 16: - player.state.y = self.height -16 #XXX: Why 78910? Is it really the right value? player.state.effective_score = min(player.state.effective_score + 78910,