Ejemplo n.º 1
0
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"))
Ejemplo n.º 2
0
 def get_sprite(self):
     return Image.load(Path.path_to("accessories", "TransmutationCircle.png"))
Ejemplo n.º 3
0
 def get_sprite(self):
     return Image.load(Path.path_to("accessories", "Toast.png"))
Ejemplo n.º 4
0
    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)
Ejemplo n.º 5
0
 def get_sprite_path(self):
     return Path.path_to("sprite_sheets", "Virgo")
Ejemplo n.º 6
0
 def get_sprite_path(self):
     return Path.path_to("sprite_sheets", "Sakura")
Ejemplo n.º 7
0
 def get_sprite_path(self):
     return Path.path_to("sprite_sheets", "Bowsette")
Ejemplo n.º 8
0
 def get_sprite_path(self):
     return Path.path_to("sprite_sheets", "Maid")