Mercurial > touhou
comparison pytouhou/ui/gamerunner.py @ 233:067f6d9c562b
Fix replay handling a bit
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sat, 31 Dec 2011 02:50:04 +0100 |
parents | 2d35565b5608 |
children | da53bc29b94a |
comparison
equal
deleted
inserted
replaced
232:8843e26f80c3 | 233:067f6d9c562b |
---|---|
44 self.keys = pyglet.window.key.KeyStateHandler() | 44 self.keys = pyglet.window.key.KeyStateHandler() |
45 self.push_handlers(self.keys) | 45 self.push_handlers(self.keys) |
46 else: | 46 else: |
47 self.keys = 0 | 47 self.keys = 0 |
48 self.replay_level = replay.levels[game.stage-1] | 48 self.replay_level = replay.levels[game.stage-1] |
49 self.game.players[0].state.lives = self.replay_level.lives | |
50 self.game.players[0].state.power = self.replay_level.power | |
51 self.game.players[0].state.bombs = self.replay_level.bombs | |
52 self.game.difficulty = self.replay_level.difficulty | |
49 | 53 |
50 self.fps_display = pyglet.clock.ClockDisplay() | 54 self.fps_display = pyglet.clock.ClockDisplay() |
51 | 55 |
52 | 56 |
53 def start(self, width=None, height=None): | 57 def start(self, width=None, height=None): |