comparison scripts/pytouhou @ 614:2cf518129725

Delay power assignment to players until the game is started.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 28 Mar 2015 21:02:05 +0100
parents e9300aae4b24
children 4fa0a8e7d941
comparison
equal deleted inserted replaced
613:560b45a7d014 614:2cf518129725
200 with open(hints, 'rb') as file: 200 with open(hints, 'rb') as file:
201 hints = Hint.read(file) 201 hints = Hint.read(file)
202 202
203 game_class = GameBossRush if boss_rush else Game 203 game_class = GameBossRush if boss_rush else Game
204 204
205 common = Common(resource_loader, characters, continues, stage_num - 1) 205 common = Common(resource_loader, characters, continues)
206 interface = Interface(resource_loader, common.players[0]) #XXX 206 interface = Interface(resource_loader, common.players[0]) #XXX
207 common.interface = interface #XXX 207 common.interface = interface #XXX
208 renderer = GameRenderer(resource_loader, window) if GameRenderer is not None else None 208 renderer = GameRenderer(resource_loader, window) if GameRenderer is not None else None
209 runner = GameRunner(window, renderer, common, resource_loader, skip_replay, con) 209 runner = GameRunner(window, renderer, common, resource_loader, skip_replay, con)
210 window.set_runner(runner) 210 window.set_runner(runner)