Mercurial > touhou
changeset 233:067f6d9c562b
Fix replay handling a bit
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sat, 31 Dec 2011 02:50:04 +0100 |
parents | 8843e26f80c3 |
children | 3cbfa2c11dec |
files | pytouhou/games/eosd.py pytouhou/ui/gamerunner.py |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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.),
--- 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()