import pygame from fighting_game.helpers.screen import SCREEN_WIDTH, SCREEN_HEIGHT, GROUND_AREA_Y from fighting_game.helpers.image import Image from fighting_game.helpers.path import Path from fighting_game.helpers.colors import * pygame.init() # Window Settings win = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT)) background = Image.load(Path.path_to("backgrounds", "BackgroundFairyTail.png")) background_menu = Image.load(Path.path_to("backgrounds", "Background_Shonen_Jump.png")) background_character = Image.load(Path.path_to("backgrounds", "BackgroundNeoTokyo.png")) scaled_background_character = Image.scale_to_window(background_character) scaled_background_menu = Image.scale_to_window(background_menu) scaled_background = Image.scale_to_window(background) # Fonts title_font = pygame.font.SysFont("Comic Sans MS", 50) text_font = pygame.font.SysFont("Comic Sans MS", 30) game_start = text_font.render("START GAME", True, BLACK) # Clock clock = pygame.time.Clock() # Characters_profiles_preloads bowsette_load = Image.load(Path.path_to("profile", "bowsette_character.png")) bowsette = pygame.transform.scale(bowsette_load, (50, 200)) maid_load = Image.load(Path.path_to("profile", "maid_character.png"))
def get_sprite(self): return Image.load(Path.path_to("accessories", "TransmutationCircle.png"))
def get_sprite(self): return Image.load(Path.path_to("accessories", "Toast.png"))
def get_card_image(name: str): image = Image.load(Path.path_to("profile", "{}_character.png".format(name.lower()))) return pygame.transform.scale(image, Character.card_size)
def get_sprite_path(self): return Path.path_to("sprite_sheets", "Virgo")
def get_sprite_path(self): return Path.path_to("sprite_sheets", "Sakura")
def get_sprite_path(self): return Path.path_to("sprite_sheets", "Bowsette")
def get_sprite_path(self): return Path.path_to("sprite_sheets", "Maid")