# HG changeset patch # User Thibaut Girka # Date 1325296204 -3600 # Node ID 067f6d9c562bf72354957d664414ede42a68405f # Parent 8843e26f80c387fb7d3ea2f4a675fccfad7945e8 Fix replay handling a bit diff --git a/pytouhou/games/eosd.py b/pytouhou/games/eosd.py --- a/pytouhou/games/eosd.py +++ b/pytouhou/games/eosd.py @@ -150,7 +150,7 @@ class EoSDPlayer(Player): shot.sprite % 256 + 32, #TODO: find the real cancel anim 0, 0, 0, 0.) if shot.type == 2: - #TODO: check acceleration, check duration, check everything! + #TODO: triple-check acceleration! bullets.append(Bullet((x, y), bullet_type, 0, shot.angle, shot.speed, (-1, 0, 0, 0, 0.15, -pi/2., 0., 0.), diff --git a/pytouhou/ui/gamerunner.py b/pytouhou/ui/gamerunner.py --- a/pytouhou/ui/gamerunner.py +++ b/pytouhou/ui/gamerunner.py @@ -46,6 +46,10 @@ class GameRunner(pyglet.window.Window, G else: self.keys = 0 self.replay_level = replay.levels[game.stage-1] + self.game.players[0].state.lives = self.replay_level.lives + self.game.players[0].state.power = self.replay_level.power + self.game.players[0].state.bombs = self.replay_level.bombs + self.game.difficulty = self.replay_level.difficulty self.fps_display = pyglet.clock.ClockDisplay()