Example #1
0
def play(config_path, show_path):
    game = LampGame(
        machine_type=procgame.tools.machine_type_from_yaml(config_path))
    game.load_config(config_path)
    game.play(show_path)
    game.run_loop()
    del game
Example #2
0
def tool_run(options, args):
    if len(args) != 1:
        return False

    if options.machine_type:
        machine_type = pinproc.normalize_machine_type(options.machine_type)
    else:
        machine_type = pinproc.MachineTypeCustom

    game = PlayerGame(machine_type=machine_type)

    game.play(filename=args[0], repeat=options.repeat)

    game.run_loop()
    del game
    return True
Example #3
0
def tool_run(options, args):
    if len(args) != 1:
        return False

    if options.machine_type:
        machine_type = pinproc.normalize_machine_type(options.machine_type)
    else:
        machine_type = pinproc.MachineTypeCustom

    game = PlayerGame(machine_type=machine_type, width=options.size[0], height=options.size[1])

    game.play(filename=args[0], repeat=options.repeat, hold=options.hold, frametime=options.frametime)

    game.run_loop()
    del game
    return True
def tool_run(options, args):
	if len(args) != 1:
		return False
	
	if options.machine_type:
		machine_type = pinproc.normalize_machine_type(options.machine_type)
	else:
		machine_type = pinproc.MachineTypeCustom
	
	game = PlayerGame(machine_type=machine_type,width=options.size[0], height=options.size[1])

	game.play(filename=args[0], repeat=options.repeat, hold=options.hold, frametime = options.frametime)
	
	game.run_loop()
	del game
	return True
Example #5
0
def tool_run(options, args):
	if len(args) != 1:
		return False
	
	if options.machine_type:
		machine_type = pinproc.normalize_machine_type(options.machine_type)
	else:
		machine_type = pinproc.MachineTypeCustom
	
	game = PlayerGame(machine_type=machine_type)
	
	game.play(filename=args[0], repeat=options.repeat)
	
	game.run_loop()
	del game
	return True
def play(config_path, show_path):
	game = LampGame(machine_type=procgame.tools.machine_type_from_json(config_path))
	game.load_config(config_path)
	game.play(show_path)
	game.run_loop()
	del game