Example #1
0
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()
Example #2
0
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()
Example #3
0
File: main.py Project: nystep/muz
def playBeatmap(bmap):
    try:
        frontend.gameLoop(game.Game(bmap, frontend))
    finally:
        frontend.shutdown()