def render(self, screen): screen.fill(WHITE) screen.blit(background, (0, 0)) textbox_gunnar = TextBox((0.5, 0.2), "RobotoSlab-Medium.ttf", 25, False, YELLOW, self.text_gunnar) textbox_gunnar.render(screen) textbox_ada = TextBox((0.5, 0.2), "RobotoSlab-Medium.ttf", 25, False, RED, self.text_ada) textbox_ada.render(screen) x_off, y_off = periodic_movement(1, 5) if self.turn == "user": glada_gunnar(24, 144 + y_off, 122, 45) aggressive_ada(504, 156, 650, 550) else: glada_gunnar(24, 144, 122, 45) aggressive_ada(504, 156 + y_off, 650, 550) quit_button() # back_button() # Rotate sword depending on whose turn it is sword(self.turn)
def render(self, screen): screen.blit(background, (0, 0)) # aggressive_ada(520, 300, 640, 300) # glada_gunnar(8, 30, 122, 45) choose_city_button() battle_time_button() quit_button() text_speech( screen, "RobotoSlab-Medium.ttf", 25, "Press battle to get a random mood score, or choose a city!", BLACK, 400, 200, True) pg.display.update()
def render(self, screen): screen.fill(WHITE) screen.blit(background, (0, 0)) x_off, y_off = periodic_movement(1, 5) aggressive_ada(504, 156, 650, 550) glada_gunnar(24, 144 + y_off, 122, 45) screen.blit(vs_sign1, (300, 225)) quit_button() block_button() attack_button() special_attack_button() quiz_button() textbox_gunnar = TextBox((0.5, 0.2), "RobotoSlab-Medium.ttf", 30, False, WHITE, "It's your turn!") textbox_gunnar.render(screen)
def render(self, screen): screen.fill(WHITE) screen.blit(background_win, (0, 0)) ada_win_pic = pg.image.load("images/Pink_dragon_08.png") ada_win_pic = pg.transform.scale(ada_win_pic, (350, 350)) screen.blit(ada_win_pic, (205, 285)) winning_crown_ada_moving() gunnar_lose = pg.transform.scale(gunnar.image, (200, 200)) screen.blit(gunnar_lose, (25, 355)) tear_drop = pg.image.load("images/tear-png-20.png") tear_drop = pg.transform.scale(tear_drop, (25, 25)) screen.blit(tear_drop, (90, 430)) screen.blit(logo, (215, -55)) text_speech(screen, "RobotoSlab-Medium.ttf", 30, "Better luck next time,", YELLOW_LIGHT, 386, 150, True) text_speech(screen, "RobotoSlab-Medium.ttf", 30, f"{ada.name} won!", YELLOW_LIGHT, 385, 200, True) quit_button()
def render(self, screen): screen.fill(WHITE) screen.blit(background_win, (0, 0)) x_off, y_off = periodic_movement(1, 5) #CL gunnar_bigger = pg.transform.scale(gunnar.image, (350, 350)) screen.blit(gunnar_bigger, (220, 235 + y_off)) winning_crown_hasse_moving() pink_dragon_sad = pg.image.load("images/Pink_dragon_05.png") pink_dragon_sad = pg.transform.scale(pink_dragon_sad, (204, 235)) screen.blit(pink_dragon_sad, (25, 340)) screen.blit(logo, (213, -55)) tear_drop = pg.image.load("images/tear-png-20.png") tear_drop = pg.transform.scale(tear_drop, (25, 25)) screen.blit(tear_drop, (120, 410)) text_speech(screen, "RobotoSlab-Medium.ttf", 30, "Congratulations,", YELLOW_LIGHT, 389, 150, True) text_speech(screen, "RobotoSlab-Medium.ttf", 30, f"{gunnar.name} won!", YELLOW_LIGHT, 388, 200, True) quit_button()
def render(self, screen): screen.fill(WHITE) screen.blit(start_background, (0, 0)) screen.blit(instructions_frame, (75, 75)) back_button() quit_button()