Mercurial > touhou
comparison 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 |
comparison
equal
deleted
inserted
replaced
224:9bb26dbb8438 | 225:2d35565b5608 |
---|---|
176 self._sprite.rescale = 0.75, 1.5 | 176 self._sprite.rescale = 0.75, 1.5 |
177 self._sprite.fade(26, 96, lambda x: x) | 177 self._sprite.fade(26, 96, lambda x: x) |
178 self._sprite.scale_in(26, 0.00, 2.5, lambda x: x) | 178 self._sprite.scale_in(26, 0.00, 2.5, lambda x: x) |
179 | 179 |
180 elif time == 32: | 180 elif time == 32: |
181 self.state.x = 192.0 | 181 self.state.x = float(self._game.width) / 2. #TODO |
182 self.state.y = 384.0 | 182 self.state.y = float(self._game.width) #TODO |
183 self.direction = None | 183 self.direction = None |
184 | 184 |
185 self._sprite = Sprite() | 185 self._sprite = Sprite() |
186 self._anmrunner = ANMRunner(self.anm_wrapper, 0, self._sprite) | 186 self._anmrunner = ANMRunner(self.anm_wrapper, 0, self._sprite) |
187 self._sprite.alpha = 128 | 187 self._sprite.alpha = 128 |