Mercurial > touhou
diff eosd @ 508:1bc014f9d572
Make GameRunner entirely independent of Window or GameRenderer, so we can run a game without display.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 19 Nov 2013 14:19:14 +0100 |
parents | c622eaf64428 |
children | b39ad30c6620 |
line wrap: on
line diff
--- a/eosd +++ b/eosd @@ -60,6 +60,7 @@ from pytouhou.lib.sdl import SDL from pytouhou.ui.window import Window from pytouhou.resource.loader import Loader from pytouhou.ui.gamerunner import GameRunner +from pytouhou.ui.gamerenderer import GameRenderer from pytouhou.game.player import GameOver from pytouhou.formats.t6rp import T6RP, Level from pytouhou.utils.random import Random @@ -166,8 +167,10 @@ def main(window, path, data, stage_num, game_class = GameBossRush if boss_rush else Game common = Common(resource_loader, characters, continues, stage_num - 1) - runner = GameRunner(window, common, resource_loader, skip_replay, con) + renderer = GameRenderer(resource_loader, window.use_fixed_pipeline) + runner = GameRunner(window, renderer, common, resource_loader, skip_replay, con) window.set_runner(runner) + while True: first_player = common.players[0]