diff pytouhou/game/player.py @ 225:2d35565b5608

Move game size in the game's definition, and don't keep changing the window's size.
author Thibaut Girka <thib@sitedethib.com>
date Mon, 19 Dec 2011 21:35:40 +0100
parents 0595315d3880
children e59bd7979ddc
line wrap: on
line diff
--- a/pytouhou/game/player.py
+++ b/pytouhou/game/player.py
@@ -178,8 +178,8 @@ class Player(object):
                 self._sprite.scale_in(26, 0.00, 2.5, lambda x: x)
 
             elif time == 32:
-                self.state.x = 192.0
-                self.state.y = 384.0
+                self.state.x = float(self._game.width) / 2. #TODO
+                self.state.y = float(self._game.width) #TODO
                 self.direction = None
 
                 self._sprite = Sprite()