comparison pytouhou/ui/gamerunner.pyx @ 494:6be9c99a3a24

Merge PlayerState into Player, fix player respawn position.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 14 Oct 2013 12:11:01 +0200
parents 711c75115675
children c622eaf64428
comparison
equal deleted inserted replaced
493:26c082870dcf 494:6be9c99a3a24
46 self.renderer.texture_manager.load(game.resource_loader.instanced_anms.values()) 46 self.renderer.texture_manager.load(game.resource_loader.instanced_anms.values())
47 self.renderer.load_background(background) 47 self.renderer.load_background(background)
48 48
49 self.set_input(replay) 49 self.set_input(replay)
50 if replay and replay.levels[game.stage - 1]: 50 if replay and replay.levels[game.stage - 1]:
51 game.players[0].state.lives = self.replay_level.lives 51 game.players[0].lives = self.replay_level.lives
52 game.players[0].state.power = self.replay_level.power 52 game.players[0].power = self.replay_level.power
53 game.players[0].state.bombs = self.replay_level.bombs 53 game.players[0].bombs = self.replay_level.bombs
54 game.difficulty = self.replay_level.difficulty 54 game.difficulty = self.replay_level.difficulty
55 55
56 self.save_keystates = save_keystates 56 self.save_keystates = save_keystates
57 57
58 null_player = NullPlayer() 58 null_player = NullPlayer()