Projekt_Sztuczna_Inteligencja/assets/asset_constants.py

263 lines
7.1 KiB
Python
Raw Normal View History

import pygame
import os
import project_constants as c
DIR_ASSETS = c.DIR_ASSETS
V_TILE_SIZE = c.V_TILE_SIZE
# ============== #
# === ASSETS === #
# ============== #
ASSET_BACKGROUND = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "numbered_grid.png")),
(650, 650)
)
ASSET_SAPPER = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "robot_sapper.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_WALL = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "brick_wall.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_CONCRETE = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "concrete.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_MUD = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "mud.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_GRASS = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "grass.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_MINE = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "mine.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_CHAINS = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chains.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_CHAIN_COUNTER = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_counter.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_TIME_MINE = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "time_mine.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
# ==================== #
# === TIME NUMBERS === #
# ==================== #
ASSET_NUMBER_TIME_0 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "time_numbers/time_number_0.png")),
(6, 16)
)
ASSET_NUMBER_TIME_1 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "time_numbers/time_number_1.png")),
(6, 16)
)
ASSET_NUMBER_TIME_2 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "time_numbers/time_number_2.png")),
(6, 16)
)
ASSET_NUMBER_TIME_3 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "time_numbers/time_number_3.png")),
(6, 16)
)
ASSET_NUMBER_TIME_4 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "time_numbers/time_number_4.png")),
(6, 16)
)
ASSET_NUMBER_TIME_5 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "time_numbers/time_number_5.png")),
(6, 16)
)
ASSET_NUMBER_TIME_6 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "time_numbers/time_number_6.png")),
(6, 16)
)
ASSET_NUMBER_TIME_7 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "time_numbers/time_number_7.png")),
(6, 16)
)
ASSET_NUMBER_TIME_8 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "time_numbers/time_number_8.png")),
(6, 16)
)
ASSET_NUMBER_TIME_9 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "time_numbers/time_number_9.png")),
(6, 16)
)
# ====================== #
# === CHAINS NUMBERS === #
# ====================== #
ASSET_NUMBER_CHAINS_0 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_0.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_1 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_1.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_2 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_2.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_3 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_3.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_4 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_4.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_5 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_5.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_6 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_6.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_7 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_7.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_8 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_8.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_9 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_9.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_10 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_10.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_11 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_11.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_12 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_12.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_13 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_13.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_14 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_14.png")),
(6, 12)
)
ASSET_NUMBER_CHAINS_15 = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "chain_numbers/chain_number_15.png")),
(6, 12)
)
# ================== #
# === OLD ASSETS === #
# ================== #
ASSET_MINE_A = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "simple_assets/mine_a.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_MINE_B = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "simple_assets/mine_b.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_MINE_F = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "simple_assets/mine_f.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_MINE_K = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "simple_assets/mine_k.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_TILE_ORANGE = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "old_tiles/tile_orange.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_TILE_RED = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "old_tiles/tile_red.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_TILE_BLUE = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "old_tiles/tile_blue.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_TILE_PURPLE = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "old_tiles/tile_purple.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_TILE_GREEN = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "old_tiles/tile_green.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_TILE_YELLOW = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "old_tiles/tile_yellow.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)
ASSET_TILE_WHITE = pygame.transform.scale(
pygame.image.load(os.path.join(DIR_ASSETS, "old_tiles/tile_white.png")),
(V_TILE_SIZE, V_TILE_SIZE)
)