Exemplo n.º 1
0
	def update(screen):
		Game.current_screen = Game.screens[Game.current_screen_number]
		Game.current_screen.Block_List.draw(screen)
		Button.update(screen, Game.current_screen.Button_List)
		Game.current_pokemon = Game.Pokemon_List[Game.current_pokemon_number]
		Game.opponent.pokemon = Game.Opponent_Pokemon_List[Game.current_opponent_number]
		Game.Opponent_Pokemon_List = Game.opponent.list
		Game.help_text = Game.text_bubbles[Game.help_text_number]

		Game.screen = screen

		if Game.current_screen_number == 2:
			Game.update_info(screen)
		elif Game.current_screen_number == 1:
			Game.show_stats(screen)
		elif Game.current_screen_number == 3:
			Game.options(screen)
		elif Game.current_screen_number == 4:
			Game.Gym_Leaders(screen)
Exemplo n.º 2
0
    def __init__(self):

        Visible.__init__(self)

        buttons = [
            ["Team Builder", 225, 75, 190, 50, BLUE, BRIGHT_BLUE, 1],
            ["Play", 225, 225, 190, 50, RED, BRIGHT_RED, 2],
            ["Change Teams", 225, 375, 190, 50, GREEN, BRIGHT_GREEN, 3],
            ["Gym Leaders", 450, 225, 160, 50, ORANGE, BRIGHT_ORANGE, 4],
        ]

        for item in buttons:
            button = Button(item[0], item[1], item[2], item[3], item[4], item[5], item[6], item[7])
            self.Button_List.append(button)
Exemplo n.º 3
0
	def options(screen):
		button_list = []
		y = 100
		for pokemon in Game.opponent.list:
			button = Button("%s" % pokemon.name, 335, y, 300, 30, RED, RED, None)
			button_list.append(button)
			y += 50
		y = 100
		for pokemon in Game.Pokemon_List:
			button = Button("%s" % pokemon.name, 5, y, 300, 30, BLUE, BLUE, None)
			button_list.append(button)
			y += 50

		text = [
		["Your Team", 155, 50],
		["Opponent Team", 485, 50],
		["%s Pokemon" % len(Pokemon.All_Pokemon), 300, 25],
		["%s" % len(Opponent.All_Pokemon), 500, 25],
		]

		for item in text:
			Functions.text_to_screen(screen, item[0], item[1], item[2])
		Button.update(screen, button_list)
Exemplo n.º 4
0
    def __init__(self):
        Visible.__init__(self)

        buttons = [
            ["Exit", 590, 450, 45, 25, RED, BRIGHT_RED, 0],
            ["New Team", 50, 350, 200, 30, GREEN, BRIGHT_GREEN, "new_team"],
            ["Random Team", 25, 400, 250, 30, GREEN, BRIGHT_GREEN, "random_team"],
            ["New Opponent", 390, 350, 200, 30, GREEN, BRIGHT_GREEN, "new_opponent"],
            ["Random Opponent", 365, 400, 250, 30, GREEN, BRIGHT_GREEN, "random_opponent"],
        ]

        for item in buttons:
            button = Button(item[0], item[1], item[2], item[3], item[4], item[5], item[6], item[7])
            self.Button_List.append(button)
Exemplo n.º 5
0
    def __init__(self):

        Visible.__init__(self)

        blocks = [

        ]

        buttons = [

            ["Exit", 590, 450, 45, 25, RED, BRIGHT_RED, 0],
            ["-", 480, 142, 15, 15, GREEN, BRIGHT_GREEN, "-health"],
            ["+", 535, 142, 15, 15, GREEN, BRIGHT_GREEN, "+health"],
            ["-", 480, 202, 15, 15, GREEN, BRIGHT_GREEN, "-attack"],
            ["+", 535, 202, 15, 15, GREEN, BRIGHT_GREEN, "+attack"],
            ["-", 480, 262, 15, 15, GREEN, BRIGHT_GREEN, "-defense"],
            ["+", 535, 262, 15, 15, GREEN, BRIGHT_GREEN, "+defense"],
            ["-", 480, 322, 15, 15, GREEN, BRIGHT_GREEN, "-special_attack"],
            ["+", 535, 322, 15, 15, GREEN, BRIGHT_GREEN, "+special_attack"],
            ["-", 480, 382, 15, 15, GREEN, BRIGHT_GREEN, "-special_defense"],
            ["+", 535, 382, 15, 15, GREEN, BRIGHT_GREEN, "+special_defense"],
            ["-", 480, 442, 15, 15, GREEN, BRIGHT_GREEN, "-speed"],
            ["+", 535, 442, 15, 15, GREEN, BRIGHT_GREEN, "+speed"],
            ["<", 5, 80, 20, 20, GREEN, BRIGHT_GREEN, "<move1"],
            [">", 300, 80, 20, 20, GREEN, BRIGHT_GREEN, ">move1"],
            ["<", 5, 180, 20, 20, GREEN, BRIGHT_GREEN, "<move2"],
            [">", 300, 180, 20, 20, GREEN, BRIGHT_GREEN, ">move2"],
            ["<", 5, 280, 20, 20, GREEN, BRIGHT_GREEN, "<move3"],
            [">", 300, 280, 20, 20, GREEN, BRIGHT_GREEN, ">move3"],
            ["<", 5, 380, 20, 20, GREEN, BRIGHT_GREEN, "<move4"],
            [">", 300, 380, 20, 20, GREEN, BRIGHT_GREEN, ">move4"],
            ["<", 55, 30, 20, 20, GREEN, BRIGHT_GREEN, "previous"],
            [">", 325, 30, 20, 20, GREEN, BRIGHT_GREEN, "next"],
            ["previous", 150, 4, 100, 20, GREEN, BRIGHT_GREEN, "up"],
            ["next", 150, 54, 100, 20, GREEN, BRIGHT_GREEN, "down"]

        ]

        for item in blocks:
            block = Block(item[0], item[1], item[2], item[3], item[4])
            self.Block_List.add(block)

        for item in buttons:
            button = Button(item[0], item[1], item[2], item[3], item[4], item[5], item[6], item[7])
            self.Button_List.append(button)
Exemplo n.º 6
0
    def __init__(self):
        Visible.__init__(self)

        buttons = [
            ["Exit", 590, 450, 45, 25, RED, BRIGHT_RED, 0],
            ["Normal", 50, 75, 160, 30, SNOW_WHITE, BRIGHT_SNOW_WHITE, "normal"],
            ["Fight", 50, 115, 160, 30, DARK_RED, MAROON, "fight"],
            ["Ice", 50, 155, 160, 30, SKY_BLUE, LIGHT_SKY_BLUE, "ice"],
            ["Poison", 50, 195, 160, 30, PURPLE, LIGHT_PURPLE, "poison"],
            ["Ground", 50, 235, 160, 30, TAN, BURLY_WOOD, "ground"],
            ["Fire", 50, 275, 160, 30, RED, BRIGHT_RED, "fire"],
            ["Psychic", 50, 315, 160, 30, DEEP_PINK, HOT_PINK, "psychic"],
            ["Grass", 50, 355, 160, 30, GREEN, BRIGHT_GREEN, "grass"],
            ["Electric", 50, 395, 160, 30, YELLOW, BRIGHT_YELLOW, "electric"],

        ]

        for item in buttons:
            button = Button(item[0], item[1], item[2], item[3], item[4], item[5], item[6], item[7])
            self.Button_List.append(button)
Exemplo n.º 7
0
    def __init__(self):

        Visible.__init__(self)

        blocks = [
            [10, 10, 200, 125, TOMATO],
            #[10, 10, 2, 125, RED],
            #[10, 135, 250, 2, RED],
            #[260, 10, 2, 127, RED],
            [430, 230, 200, 125, TOMATO_GREEN],
            #[380, 230, 2, 125, GREEN],
            #[630, 230, 2, 127, GREEN],
            #[380, 355, 250 ,2, GREEN],
            [0, 364, 640, 2, BLUE],
            [0, 421, 510, 2, BLUE],
            [510, 365, 2, 115, BLUE],
            [255, 365, 2, 115, BLUE],
            #[50, 65, 110, 12, RED],
            #[470, 290, 110, 12, RED],
        ]

        buttons = [
            ["Exit", 900, 450, 45, 25, RED, BRIGHT_RED, 0],
            ["OK", 520, 370, 75, 30, BLUE, BRIGHT_BLUE, "ok"],
            ["Party", 520, 410, 75, 30, GREEN, BRIGHT_GREEN, "party"],
            [" ", 2, 366, 253, 55, ORANGE, BRIGHT_ORANGE, "move1"],
            [" ", 2, 423, 253, 55, ORANGE, BRIGHT_ORANGE, "move3"],
            [" ", 257, 366, 253, 55, ORANGE, BRIGHT_ORANGE, "move2"],
            [" ", 257, 423, 253, 55, ORANGE, BRIGHT_ORANGE, "move4"],
            ["<", 700, 25, 30, 30, GREEN, BRIGHT_GREEN, "previous_turn"],
            [">", 875, 25, 30, 30, GREEN, BRIGHT_GREEN, "next_turn"]
        ]

        for item in blocks:
            block = Block(item[0], item[1], item[2], item[3], item[4])
            self.Block_List.add(block)

        for item in buttons:
            button = Button(item[0], item[1], item[2], item[3], item[4], item[5], item[6], item[7])
            self.Button_List.append(button)
Exemplo n.º 8
0
	def show_stats(screen):
		text = [
		["%s" % Game.current_pokemon.max_health, 515, 150],
		["%s" % Game.current_pokemon.attack, 515, 210],
		["%s" % Game.current_pokemon.defense, 515, 270],
		["%s" % Game.current_pokemon.special_attack, 515, 330],
		["%s" % Game.current_pokemon.special_defense, 515, 390],
		["%s" % Game.current_pokemon.speed, 515, 450],
		]

		for item in text:
			Functions.text_to_screen(screen, item[0], item[1], item[2])

		buttons = [
		["%s" % Game.current_pokemon.name, 75, 25, 250, 30, BLUE, BLUE, None],
		["Type: %s" % Game.current_pokemon.type.name, 375, 5, 200, 30, BLUE, BLUE, None],
		#move1 & stats
		["Move 1: %s" % Game.current_pokemon.move1.name, 25, 75, 275, 30, BLUE, BLUE, None],
		["Type: %s" % Game.current_pokemon.move1.type.name, 25, 107, 250, 30, DODGER_BLUE, BLUE, None],
		["Power:%s" % Game.current_pokemon.move1.power, 5, 142, 125, 30, DODGER_BLUE, BLUE, None],
		["Contact: %s" % Game.current_pokemon.move1.contact, 135, 142, 200, 30, DODGER_BLUE, BLUE, None],
		# move 2 & stats
		["Move 2: %s" % Game.current_pokemon.move2.name, 25, 175, 275, 30, BLUE, BLUE, None],
		["Type: %s" % Game.current_pokemon.move2.type.name, 25, 207, 250, 30, DODGER_BLUE, BLUE, None],
		["Power:%s" % Game.current_pokemon.move2.power, 5, 242, 125, 30, DODGER_BLUE, BLUE, None],
		["Contact: %s" % Game.current_pokemon.move2.contact, 135, 242, 200, 30, DODGER_BLUE, BLUE, None],
		# move 3 & stats
		["Move 3: %s" % Game.current_pokemon.move3.name, 25, 275, 275, 30, BLUE, BLUE, None],
		["Type: %s" % Game.current_pokemon.move3.type.name, 25, 307, 250, 30, DODGER_BLUE, BLUE, None],
		["Power:%s" % Game.current_pokemon.move3.power, 5, 342, 125, 30, DODGER_BLUE, BLUE, None],
		["Contact: %s" % Game.current_pokemon.move3.contact, 135, 342, 200, 30, DODGER_BLUE, BLUE, None],
		# move 4 & stats
		["Move 4: %s" % Game.current_pokemon.move4.name, 25, 375, 275, 30, BLUE, BLUE, None],
		["Type: %s" % Game.current_pokemon.move4.type.name, 25, 407, 250, 30, DODGER_BLUE, BLUE, None],
		["Power:%s" % Game.current_pokemon.move4.power, 5, 442, 125, 30, DODGER_BLUE, BLUE, None],
		["Contact: %s" % Game.current_pokemon.move4.contact, 135, 442, 200, 30, DODGER_BLUE, BLUE, None],
		# points
		["Points: %s" % Game.current_pokemon.points, 400, 75, 150, 30, BRIGHT_BLUE, BRIGHT_BLUE, None],
		["Health", 340, 135, 100, 30, BLUE, BLUE, None],
		["Attack", 340, 195, 100, 30, BLUE, BLUE, None],
		["Defense", 340, 255, 100, 30, BLUE, BLUE, None],
		["Sp.Atk", 340, 315, 100, 30, BLUE, BLUE, None],
		["Sp.Def", 340, 375, 100, 30, BLUE, BLUE, None],
		["Speed", 340, 435, 100, 30, BLUE, BLUE, None],
		]
		if Game.current_pokemon.type2 != None:
			type2 = ["%s" % Game.current_pokemon.type2.name, 375, 35, 200, 30, BLUE, BLUE, None]
			buttons.append(type2)
		button_list = []
		for item in buttons:
			button = Button(item[0], item[1], item[2], item[3], item[4], item[5], item[6], item[7])
			button_list.append(button)

		base_stats = [
		["%s" % Game.current_pokemon.base_health, 460, 150],
		["%s" % Game.current_pokemon.base_attack, 460, 210],
		["%s" % Game.current_pokemon.base_defense, 460, 270],
		["%s" % Game.current_pokemon.base_special_attack, 460, 330],
		["%s" % Game.current_pokemon.base_special_defense, 460, 390],
		["%s" % Game.current_pokemon.base_speed, 460, 450],
		]

		for item in base_stats:
			Functions.text_to_screen(screen, item[0], item[1], item[2], 20)

		Button.update(screen, button_list)
		Pokemon.update()

		Game.current_pokemon.move1 = Game.current_pokemon.move_list[Game.current_pokemon.move1_number]
		Game.current_pokemon.move2 = Game.current_pokemon.move_list[Game.current_pokemon.move2_number]
		Game.current_pokemon.move3 = Game.current_pokemon.move_list[Game.current_pokemon.move3_number]
		Game.current_pokemon.move4 = Game.current_pokemon.move_list[Game.current_pokemon.move4_number]

		Game.current_pokemon.move_set[0] = Game.current_pokemon.move1
		Game.current_pokemon.move_set[1] = Game.current_pokemon.move2
		Game.current_pokemon.move_set[2] = Game.current_pokemon.move3
		Game.current_pokemon.move_set[3] = Game.current_pokemon.move4