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 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.º 3
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