Пример #1
0
def main():
	game = None
	try:
	 	game = CreatureGame()
		game.run_loop()
	finally:
		del game
Пример #2
0
def main():
    game = None
    try:
        game = TronGame()
        game.run_loop()
    finally:
        del game
Пример #3
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
Пример #4
0
def main():
	game = None
	try:
	 	game = HeistGame()
	 	game.log("XOXO")
	 	print('flippers enabled')
	 	print("Stepper going")

	 	game.enable_flippers(True)
		game.run_loop()
	finally:
		del game
Пример #5
0
def main():
    game = None
    try:
        game = HeistGame()
        game.log("XOXO")
        print('flippers enabled')
        print("Stepper going")

        game.enable_flippers(True)
        game.run_loop()
    finally:
        del game
def tool_run(options, args):
	if len(args) != 2:
		return False

	font_path, text = args

	font = dmd.Font(font_path)
	if not font:
		print("Error loading font")
		return False

	print("Enter with no input exits and saves changes.")
	game = DmdFontWidthsGame(font, font_path, text)
	game.run_loop()
	return True
Пример #7
0
def main():
    game = None
    #try:
    game = F14SecondSortie()
    log = logging.getLogger('f14.main')
    log.info("Before run loop")
    game.run_loop()
        #game.reset()
    log.info("Call cleanup")
    cleanup();
    log.info("Back from cleanup")
    #finally:
    #del game
    threading.enumerate()
    log.info("Done with thread")
Пример #8
0
def tool_run(options, args):
    if len(args) != 2:
        return False

    font_path, text = args

    font = dmd.Font(font_path)
    if not font:
        print("Error loading font")
        return False

    print("Enter with no input exits and saves changes.")
    game = DmdFontWidthsGame(font, font_path, text)
    game.run_loop()
    return True
Пример #9
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
Пример #10
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 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
Пример #12
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
Пример #13
0
        #When engage()d, light 6v circuit, and enable game features, scoring,
        #etc. Disengage()d means that the machine is 'soft' tilted.
        self.anti_cheat = units.Relay("anti_cheat")

        #When engage()d, spin.
        self.start = units.Relay("start")

        #Tilt is separate from anti-cheat in that the trip will move the shutter
        #when the game is tilted with 1st ball in the lane.  Also prevents you
        #from picking back up by killing the anti-cheat.  Can be engaged by
        #tilt bob, slam tilt switches, or timer at 39th step.
        #Immediately kills motors.
        self.tilt = units.Relay("tilt")

        self.replays = 0
        self.returned = False

    def reset(self):
        super(BrightLights, self).reset()
        self.logger = logging.getLogger('game')
        self.load_config('bingo.yaml')

        main_mode = MulticardBingo(self)
        self.modes.add(main_mode)


game = BrightLights(machine_type='pdb')
game.reset()
game.run_loop()
Пример #14
0
        #When engage()d, light 6v circuit, and enable game features, scoring,
        #etc. Disengage()d means that the machine is 'soft' tilted. 
        self.anti_cheat = units.Relay("anti_cheat")

        #When engage()d, spin.
        self.start = units.Relay("start")

        #Tilt is separate from anti-cheat in that the trip will move the shutter
        #when the game is tilted with 1st ball in the lane.  Also prevents you
        #from picking back up by killing the anti-cheat.  Can be engaged by 
        #tilt bob, slam tilt switches, or timer at 39th step.
        #Immediately kills motors.
        self.tilt = units.Relay("tilt")

        self.replays = 0
        self.returned = False
        

    def reset(self):
        super(Rainbow, self).reset()
        self.logger = logging.getLogger('game')
        self.load_config('bingo.yaml')
        
        main_mode = MulticardBingo(self)
        self.modes.add(main_mode)
        
game = Rainbow(machine_type='pdb')
game.reset()
game.run_loop()
Пример #15
0
def main():
    game = Game()
    game.setup()
    game.run_loop()
Пример #16
0
def main(sel):

    selection = {}
    selection[1] = "abc"
    selection[2] = "bright_lights"
    selection[3] = "u345"
    selection[4] = "broadway_51"
    selection[5] = "bolero"
    selection[6] = "coney_island"
    selection[7] = "zingo"
    selection[8] = "leader"
    selection[9] = "spot_lite"
    selection[10] = "holiday"
    selection[11] = "atlantic_city"
    selection[12] = "miss_california"
    selection[13] = "palm_beach"
    selection[14] = "stars"
    selection[15] = "long_beach"
    selection[16] = "circus"
    selection[17] = "frolics"
    selection[18] = "showboat"
    selection[19] = "bright_spot"
    selection[20] = "bally_beauty"
    selection[21] = "beach_club"
    selection[22] = "rodeo_3"
    selection[23] = "yacht_club"
    selection[24] = "cabana"
    selection[25] = "dude_ranch"
    selection[26] = "tropics"
    selection[27] = "rodeo_1"
    selection[28] = "tahiti_1"
    selection[29] = "palm_springs"
    selection[30] = "rio"
    selection[31] = "ice_frolics"
    selection[32] = "havana"
    selection[33] = "surf_club"
    selection[34] = "mexico"
    selection[35] = "hi_fi"
    selection[36] = "hawaii_1"
    selection[37] = "variety"
    selection[38] = "nevada"
    selection[39] = "singapore"
    selection[40] = "big_time"
    selection[41] = "tropicana"
    selection[42] = "gayety"
    selection[43] = "manhattan"
    selection[44] = "gay_time"
    selection[45] = "serenade"
    selection[46] = "miami_beach"
    selection[47] = "triple_play"
    selection[48] = "beach_beauty"
    selection[49] = "pixies"
    selection[50] = "bway"
    selection[51] = "starlet"
    selection[52] = "crosswords"
    selection[53] = "caravan"
    selection[54] = "spelling_bee"
    selection[55] = "night_club"
    selection[56] = "stardust"
    selection[57] = "parade"
    selection[58] = "south_seas"
    selection[59] = "double_header"
    selection[60] = "big_show"
    selection[61] = "monaco"
    selection[62] = "key_west"
    selection[63] = "brazil"
    selection[64] = "showtime"
    selection[65] = "sun_valley"
    selection[66] = "yukon"
    selection[67] = "playtime"
    selection[68] = "hi_hand"
    selection[69] = "fun_way"
    selection[70] = "miss_america"
    selection[71] = "cypress_gardens"
    selection[72] = "beach_time"
    selection[73] = "carnival_queen"
    selection[74] = "sea_island"
    selection[75] = "ballerina"
    selection[76] = "lotta_fun"
    selection[77] = "county_fair"
    selection[78] = "laguna_beach"
    selection[79] = "single_coin_pittsburgh"
    selection[80] = "roller_derby"
    selection[81] = "fun_spot"
    selection[82] = "barrel_o_fun"
    selection[83] = "touchdown"
    selection[84] = "circus_queen"
    selection[85] = "lite_a_line"
    selection[86] = "acapulco"
    selection[87] = "bikini"
    selection[88] = "barrel_o_fun_61"
    selection[89] = "fun_spot_61"
    selection[90] = "can_can"
    selection[91] = "lido"
    selection[92] = "shoot_a_line"
    selection[93] = "barrel_o_fun_62"
    selection[94] = "fun_spot_62"
    selection[95] = "fun_spot_63"
    selection[96] = "shoot_a_line_63"
    selection[97] = "golden_gate"
    selection[98] = "rainbow"
    selection[99] = "the_twist"
    selection[100] = "silver_sails"
    selection[101] = "bounty"
    selection[102] = "venus"
    selection[103] = "border_beauty"
    selection[104] = "beauty_beach"
    selection[105] = "folies_bergeres"
    selection[106] = "bahama_beach"
    selection[107] = "zodiac"
    selection[108] = "orient"
    selection[109] = "big_wheel"
    selection[110] = "venice"
    selection[111] = "magic_ring"
    selection[112] = "london"
    selection[113] = "safari"
    selection[114] = "joker_wild"
    selection[115] = "super_7"
    selection[116] = "bonus_7"
    selection[117] = "hole_in_one"
    selection[118] = "stock_market"
    selection[119] = "double_up"
    selection[120] = "wall_street"
    selection[121] = "ticker_tape"
    selection[122] = "twin_joker"
    selection[123] = "hawaii_2"
    selection[124] = "bali"
    selection[125] = "super_wall_street"
    selection[126] = "miss_america_75"
    selection[127] = "mystic_gate"
    selection[128] = "miss_universe"
    selection[129] = "blue_chip"
    selection[130] = "bull_market"
    selection[131] = "bonanza"
    selection[132] = "miss_america_supreme"
    selection[133] = "high_flyer"
    selection[134] = "miss_america_deluxe"
    selection[135] = "continental_18"
    selection[136] = "galaxy"
    selection[137] = "nashville"
    selection[138] = "dixieland"
    selection[139] = "tahiti_2"
    selection[140] = "malibu_beach"
    selection[141] = "continental"
    selection[142] = "mississippi_showboat"

    for i in range(1,142):
        if sel in selection[i]:
            select = i
            break

    if selection[select] == "bway":
        selection[select] = "broadway"

    os.system("ssh [email protected] /home/pi/ic.sh %s &" % (selection[select]))
    os.system("ssh [email protected] /home/pi/sd.sh %s &" % (selection[select]))


    game = Menu(machine_type='pdb')
    game.reset(selection, select)
    game.run_loop()
Пример #17
0
def main(sel):

    selection = {}
    selection[1] = "abc"
    selection[2] = "bright_lights"
    selection[3] = "u345"
    selection[4] = "broadway_51"
    selection[5] = "bolero"
    selection[6] = "coney_island"
    selection[7] = "zingo"
    selection[8] = "leader"
    selection[9] = "spot_lite"
    selection[10] = "holiday"
    selection[11] = "atlantic_city"
    selection[12] = "miss_california"
    selection[13] = "palm_beach"
    selection[14] = "stars"
    selection[15] = "long_beach"
    selection[16] = "circus"
    selection[17] = "frolics"
    selection[18] = "showboat"
    selection[19] = "bright_spot"
    selection[20] = "bally_beauty"
    selection[21] = "beach_club"
    selection[22] = "rodeo_3"
    selection[23] = "yacht_club"
    selection[24] = "cabana"
    selection[25] = "dude_ranch"
    selection[26] = "tropics"
    selection[27] = "rodeo_1"
    selection[28] = "tahiti_1"
    selection[29] = "palm_springs"
    selection[30] = "rio"
    selection[31] = "ice_frolics"
    selection[32] = "havana"
    selection[33] = "surf_club"
    selection[34] = "mexico"
    selection[35] = "hi_fi"
    selection[36] = "hawaii_1"
    selection[37] = "variety"
    selection[38] = "nevada"
    selection[39] = "singapore"
    selection[40] = "big_time"
    selection[41] = "tropicana"
    selection[42] = "gayety"
    selection[43] = "manhattan"
    selection[44] = "gay_time"
    selection[45] = "serenade"
    selection[46] = "miami_beach"
    selection[47] = "triple_play"
    selection[48] = "beach_beauty"
    selection[49] = "pixies"
    selection[50] = "bway"
    selection[51] = "starlet"
    selection[52] = "crosswords"
    selection[53] = "caravan"
    selection[54] = "spelling_bee"
    selection[55] = "night_club"
    selection[56] = "stardust"
    selection[57] = "parade"
    selection[58] = "south_seas"
    selection[59] = "double_header"
    selection[60] = "big_show"
    selection[61] = "monaco"
    selection[62] = "key_west"
    selection[63] = "brazil"
    selection[64] = "showtime"
    selection[65] = "sun_valley"
    selection[66] = "yukon"
    selection[67] = "playtime"
    selection[68] = "hi_hand"
    selection[69] = "fun_way"
    selection[70] = "miss_america"
    selection[71] = "cypress_gardens"
    selection[72] = "beach_time"
    selection[73] = "carnival_queen"
    selection[74] = "sea_island"
    selection[75] = "ballerina"
    selection[76] = "lotta_fun"
    selection[77] = "county_fair"
    selection[78] = "laguna_beach"
    selection[79] = "single_coin_pittsburgh"
    selection[80] = "roller_derby"
    selection[81] = "fun_spot"
    selection[82] = "barrel_o_fun"
    selection[83] = "touchdown"
    selection[84] = "circus_queen"
    selection[85] = "lite_a_line"
    selection[86] = "acapulco"
    selection[87] = "bikini"
    selection[88] = "barrel_o_fun_61"
    selection[89] = "fun_spot_61"
    selection[90] = "can_can"
    selection[91] = "lido"
    selection[92] = "shoot_a_line"
    selection[93] = "barrel_o_fun_62"
    selection[94] = "fun_spot_62"
    selection[95] = "fun_spot_63"
    selection[96] = "shoot_a_line_63"
    selection[97] = "golden_gate"
    selection[98] = "rainbow"
    selection[99] = "the_twist"
    selection[100] = "silver_sails"
    selection[101] = "bounty"
    selection[102] = "venus"
    selection[103] = "border_beauty"
    selection[104] = "beauty_beach"
    selection[105] = "folies_bergeres"
    selection[106] = "bahama_beach"
    selection[107] = "zodiac"
    selection[108] = "orient"
    selection[109] = "big_wheel"
    selection[110] = "venice"
    selection[111] = "magic_ring"
    selection[112] = "london"
    selection[113] = "safari"
    selection[114] = "joker_wild"
    selection[115] = "super_7"
    selection[116] = "bonus_7"
    selection[117] = "hole_in_one"
    selection[118] = "stock_market"
    selection[119] = "double_up"
    selection[120] = "wall_street"
    selection[121] = "ticker_tape"
    selection[122] = "twin_joker"
    selection[123] = "hawaii_2"
    selection[124] = "bali"
    selection[125] = "super_wall_street"
    selection[126] = "miss_america_75"
    selection[127] = "mystic_gate"
    selection[128] = "miss_universe"
    selection[129] = "blue_chip"
    selection[130] = "bull_market"
    selection[131] = "bonanza"
    selection[132] = "miss_america_supreme"
    selection[133] = "high_flyer"
    selection[134] = "miss_america_deluxe"
    selection[135] = "continental_18"
    selection[136] = "galaxy"
    selection[137] = "nashville"
    selection[138] = "dixieland"
    selection[139] = "tahiti_2"
    selection[140] = "malibu_beach"
    selection[141] = "continental"
    selection[142] = "mississippi_showboat"

    for i in range(1, 142):
        if sel in selection[i]:
            select = i
            break

    if selection[select] == "bway":
        selection[select] = "broadway"

    os.system("ssh [email protected] /home/pi/ic.sh %s &" % (selection[select]))
    os.system("ssh [email protected] /home/pi/sd.sh %s &" % (selection[select]))

    game = Menu(machine_type='pdb')
    game.reset(selection, select)
    game.run_loop()
Пример #18
0
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
Пример #19
0
def run():
    game = FapoGame(pinproc.MachineTypeWPCAlphanumeric)
    game.reset()
    game.run_loop()