def runUI(*argv): argv = argv[1:] p = initArgParser() n = None n, argv = handleGeneralArgs(p, argv, n) initFrontend(argv, n) init() try: frontend.main() finally: frontend.shutdown()
def run(*argv): argv = argv[1:] p = initArgParser() n = None n, argv = handleGeneralArgs(p, argv, n) n, argv = handleGameArgs(p, argv, n) initFrontend(argv, n) n, argv = handleRemainingArgs(p, argv, n) init() try: playBeatmap(beatmap.load(n.beatmap[0], options=n.importer_options)) finally: frontend.shutdown()
def playBeatmap(bmap): try: frontend.gameLoop(game.Game(bmap, frontend)) finally: frontend.shutdown()