From 07934fb15cb5f277980caa3d2f8fa91d415d95a1 Mon Sep 17 00:00:00 2001 From: s452635 Date: Sun, 23 May 2021 05:50:49 +0200 Subject: [PATCH] created package for assets, minor changes to mine assets --- agent.py | 5 +- assets/__init__.py | 0 assets/asset_constants.py | 262 ++++++++++++++++++ display_assets.py => assets/display_assets.py | 91 +++--- game.py | 2 +- project_constants.py | 249 +---------------- resources/assets/chains.png | Bin 325 -> 248 bytes resources/assets/mine.png | Bin 196 -> 196 bytes resources/assets/time_mine.png | Bin 301 -> 296 bytes 9 files changed, 318 insertions(+), 291 deletions(-) create mode 100644 assets/__init__.py create mode 100644 assets/asset_constants.py rename display_assets.py => assets/display_assets.py (73%) diff --git a/agent.py b/agent.py index ed635e4..bee5fb3 100644 --- a/agent.py +++ b/agent.py @@ -1,4 +1,5 @@ import project_constants as const +from assets import asset_constants as asset import json from pygame import transform @@ -33,10 +34,10 @@ class Agent: coord_x, coord_y = self.on_screen_coordinates[0], self.on_screen_coordinates[1] tl_dimension = const.V_TILE_SIZE / 2 - rotating_rect = transform.rotate(const.ASSET_SAPPER, self.rotation_angle).get_rect() + rotating_rect = transform.rotate(asset.ASSET_SAPPER, self.rotation_angle).get_rect() rotating_rect.center = (coord_x + tl_dimension, coord_y + tl_dimension) - window.blit(transform.rotate(const.ASSET_SAPPER, self.rotation_angle), rotating_rect) + window.blit(transform.rotate(asset.ASSET_SAPPER, self.rotation_angle), rotating_rect) def update(self, delta_time, minefield): self.new_action = self.going_forward + self.rotating_left * 2 + self.rotating_right * 4 diff --git a/assets/__init__.py b/assets/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/assets/asset_constants.py b/assets/asset_constants.py new file mode 100644 index 0000000..28d93b0 --- /dev/null +++ b/assets/asset_constants.py @@ -0,0 +1,262 @@ + +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) +) diff --git a/display_assets.py b/assets/display_assets.py similarity index 73% rename from display_assets.py rename to assets/display_assets.py index 72060e1..1d05c64 100644 --- a/display_assets.py +++ b/assets/display_assets.py @@ -1,6 +1,7 @@ import pygame import project_constants as const +from assets import asset_constants as asset from mine_models.standard_mine import StandardMine from mine_models.chained_mine import ChainedMine @@ -12,15 +13,15 @@ from mine_models.time_mine import TimeMine # ================================= # tile_asset_options = { - "MUD": const.ASSET_MUD, - "GRASS": const.ASSET_GRASS, - "CONCRETE": const.ASSET_CONCRETE + "MUD": asset.ASSET_MUD, + "GRASS": asset.ASSET_GRASS, + "CONCRETE": asset.ASSET_CONCRETE } mine_asset_options = { - "MINE": const.ASSET_MINE, - "CHAINS": const.ASSET_CHAINS, - "TIME_MINE": const.ASSET_TIME_MINE, + "MINE": asset.ASSET_MINE, + "CHAINS": asset.ASSET_CHAINS, + "TIME_MINE": asset.ASSET_TIME_MINE, } @@ -33,7 +34,7 @@ def blit_graphics(minefield): # background grid (fills frame with white, blits grid) const.SCREEN.fill((255, 255, 255)) const.SCREEN.blit( - const.ASSET_BACKGROUND, + asset.ASSET_BACKGROUND, ( const.V_SCREEN_PADDING, const.V_SCREEN_PADDING @@ -112,22 +113,22 @@ def display_sapper(coords, direction): if direction == const.Direction.UP: const.SCREEN.blit( - const.ASSET_SAPPER, + asset.ASSET_SAPPER, sapper_screen_coords ) elif direction == const.Direction.RIGHT: const.SCREEN.blit( - pygame.transform.rotate(const.ASSET_SAPPER, 270), + pygame.transform.rotate(asset.ASSET_SAPPER, 270), sapper_screen_coords ) elif direction == const.Direction.DOWN: const.SCREEN.blit( - pygame.transform.rotate(const.ASSET_SAPPER, 180), + pygame.transform.rotate(asset.ASSET_SAPPER, 180), sapper_screen_coords ) elif direction == const.Direction.LEFT: const.SCREEN.blit( - pygame.transform.rotate(const.ASSET_SAPPER, 90), + pygame.transform.rotate(asset.ASSET_SAPPER, 90), sapper_screen_coords ) @@ -139,21 +140,21 @@ def display_sapper(coords, direction): def display_concrete(coords): const.SCREEN.blit( - const.ASSET_CONCRETE, + asset.ASSET_CONCRETE, calculate_screen_position(coords) ) def display_mud(coords): const.SCREEN.blit( - const.ASSET_MUD, + asset.ASSET_MUD, calculate_screen_position(coords) ) def display_grass(coords): const.SCREEN.blit( - const.ASSET_GRASS, + asset.ASSET_GRASS, calculate_screen_position(coords) ) @@ -165,7 +166,7 @@ def display_grass(coords): def display_mine(coords): const.SCREEN.blit( - const.ASSET_MINE, + asset.ASSET_MINE, calculate_screen_position(coords) ) @@ -173,35 +174,35 @@ def display_mine(coords): def display_chained_mine(coords, parent_coords=None): def display_number(which_coord, number): - number_asset = const.ASSET_NUMBER_CHAINS_0 + number_asset = asset.ASSET_NUMBER_CHAINS_0 if number == 1: - number_asset = const.ASSET_NUMBER_CHAINS_1 + number_asset = asset.ASSET_NUMBER_CHAINS_1 elif number == 3: - number_asset = const.ASSET_NUMBER_CHAINS_3 + number_asset = asset.ASSET_NUMBER_CHAINS_3 elif number == 4: - number_asset = const.ASSET_NUMBER_CHAINS_4 + number_asset = asset.ASSET_NUMBER_CHAINS_4 elif number == 5: - number_asset = const.ASSET_NUMBER_CHAINS_5 + number_asset = asset.ASSET_NUMBER_CHAINS_5 elif number == 6: - number_asset = const.ASSET_NUMBER_CHAINS_6 + number_asset = asset.ASSET_NUMBER_CHAINS_6 elif number == 7: - number_asset = const.ASSET_NUMBER_CHAINS_7 + number_asset = asset.ASSET_NUMBER_CHAINS_7 elif number == 8: - number_asset = const.ASSET_NUMBER_CHAINS_8 + number_asset = asset.ASSET_NUMBER_CHAINS_8 elif number == 9: - number_asset = const.ASSET_NUMBER_CHAINS_9 + number_asset = asset.ASSET_NUMBER_CHAINS_9 elif number == 10: - number_asset = const.ASSET_NUMBER_CHAINS_10 + number_asset = asset.ASSET_NUMBER_CHAINS_10 elif number == 11: - number_asset = const.ASSET_NUMBER_CHAINS_11 + number_asset = asset.ASSET_NUMBER_CHAINS_11 elif number == 12: - number_asset = const.ASSET_NUMBER_CHAINS_12 + number_asset = asset.ASSET_NUMBER_CHAINS_12 elif number == 13: - number_asset = const.ASSET_NUMBER_CHAINS_13 + number_asset = asset.ASSET_NUMBER_CHAINS_13 elif number == 14: - number_asset = const.ASSET_NUMBER_CHAINS_14 + number_asset = asset.ASSET_NUMBER_CHAINS_14 elif number == 15: - number_asset = const.ASSET_NUMBER_CHAINS_15 + number_asset = asset.ASSET_NUMBER_CHAINS_15 mine_coords = calculate_screen_position(coords) number_coords = mine_coords @@ -218,11 +219,17 @@ def display_chained_mine(coords, parent_coords=None): display_mine(coords) const.SCREEN.blit( - const.ASSET_CHAINS, + asset.ASSET_CHAINS, calculate_screen_position(coords) ) if parent_coords is not None: + + const.SCREEN.blit( + asset.ASSET_CHAIN_COUNTER, + calculate_screen_position(coords) + ) + display_number(const.Coords.X, parent_coords[0]) display_number(const.Coords.Y, parent_coords[1]) @@ -231,25 +238,25 @@ def display_time_mine(coords, time): def display_number(which_digit, number): - number_asset = const.ASSET_NUMBER_TIME_0 + number_asset = asset.ASSET_NUMBER_TIME_0 if number == 1: - number_asset = const.ASSET_NUMBER_TIME_1 + number_asset = asset.ASSET_NUMBER_TIME_1 elif number == 2: - number_asset = const.ASSET_NUMBER_TIME_2 + number_asset = asset.ASSET_NUMBER_TIME_2 elif number == 3: - number_asset = const.ASSET_NUMBER_TIME_3 + number_asset = asset.ASSET_NUMBER_TIME_3 elif number == 4: - number_asset = const.ASSET_NUMBER_TIME_4 + number_asset = asset.ASSET_NUMBER_TIME_4 elif number == 5: - number_asset = const.ASSET_NUMBER_TIME_5 + number_asset = asset.ASSET_NUMBER_TIME_5 elif number == 6: - number_asset = const.ASSET_NUMBER_TIME_6 + number_asset = asset.ASSET_NUMBER_TIME_6 elif number == 7: - number_asset = const.ASSET_NUMBER_TIME_7 + number_asset = asset.ASSET_NUMBER_TIME_7 elif number == 8: - number_asset = const.ASSET_NUMBER_TIME_8 + number_asset = asset.ASSET_NUMBER_TIME_8 elif number == 9: - number_asset = const.ASSET_NUMBER_TIME_9 + number_asset = asset.ASSET_NUMBER_TIME_9 mine_coords = calculate_screen_position(coords) number_coords = mine_coords @@ -264,7 +271,7 @@ def display_time_mine(coords, time): ) const.SCREEN.blit( - const.ASSET_TIME_MINE, + asset.ASSET_TIME_MINE, calculate_screen_position(coords) ) diff --git a/game.py b/game.py index 1000a20..9545f53 100644 --- a/game.py +++ b/game.py @@ -2,7 +2,7 @@ from random import randint import project_constants as const -from display_assets import blit_graphics +from assets.display_assets import blit_graphics from searching_algorithms import a_star from minefield import Minefield diff --git a/project_constants.py b/project_constants.py index 8c72078..b8b15d9 100644 --- a/project_constants.py +++ b/project_constants.py @@ -10,7 +10,7 @@ from ui.input_box import InputBox # STRUCT a list or other structure of values # FUNC a function # OBJ a classes instance -# ASSET a png file (or other graphic format) +# ASSET a png file (or other graphic format) (moved to asset_constants) # MAP a JSON map file @@ -19,9 +19,10 @@ from ui.input_box import InputBox # ================= # V_NAME_OF_WINDOW = "MineFusion TM" -DIR_ASSETS = os.path.join("resources", "assets") V_FPS = 60 +DIR_ASSETS = os.path.join("resources", "assets") + TURN_INTERVAL = 0.3 # interval between two turns in seconds V_TILE_SIZE = 60 @@ -211,248 +212,4 @@ OK_BUTTON = Button( MAP_RANDOM_10x10 = os.path.join("resources", "minefields", "fourthmap.json") -# ============== # -# === 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_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) -) diff --git a/resources/assets/chains.png b/resources/assets/chains.png index 9a7d67cb6dc1dbc18883e9d16c567cf19586bf31..a4cafbe05bae4c3bf1f2974d4059e1fa6118ebe3 100644 GIT binary patch delta 221 zcmV<303!dz0{8)tBYyzDNkl_zS42^N5H8fQWdEtE!*5@9-HvgaN?J{CvoX0*t-Nk6Ob=hd{+Qv(Yh=T_w%< zgRqFWnK?<>9CRR7Y94F?D?oEcVzuKqyia?)LU{OpnP?PFjaHSVXhPY_viXge4)3bT zo;pr1coVkuc0a!j<8;}(@zZz! X=w7w!N}r_q00000NkvXXu0mjf_Q-7z delta 299 zcmV+`0o4BZ0mTB4BYy!5Nkl64D8^ai7~8M4~a~b9XYs zsJO|xKoW@_`wMHW8C*n+h)6`t$6IR_u`_tYKg2{ts%p`J@dSun#e1&ZLma@&yUA76 znAxu2@u53nyo@Pg<}{^II`iz z9V*TyopE2jp&Dagwj4$r>b?8<$v;HkU1F~|3fmC-RGcZUwOXxph`8IlS@Bn-8pPd> z&R(u0K2#hR_{vl-t?}1%_2qTEY6F?tx$bP6z2-d*zU}ToF|7FR5t!j2u3O_3hknF+ xvb3vx2K=@6K_oNybOZ68#bm6HGf diff --git a/resources/assets/mine.png b/resources/assets/mine.png index 1a42234e8835b59be71e0fc806b7ad8faefdf82d..ad8a727e35130223a12230e94605832584059faa 100644 GIT binary patch delta 159 zcmV;Q0AT;b0mK22Eq}ocfItWY!0XjAtieir*o^(?*O(JnTp*ew;XQ1k9IcHKYF(y7 z>QHds=5A95uz>UdQ1EGhRMdsDP#9;TS3EVXIduf8rbg1<7sspAUKGV$u(mP>{Czm= z<0|=`kkp=5H&@BZj7n{Ool2fXCSG!dQ0}hOV-FpG3Q7a?nivlLs!j?96F;Jocmn_c N002ovPDHLkV1l&?N6P>J delta 159 zcmV;Q0AT;b0mK22Eq_4@fItWZ(78tt-J$!m@BRmRr7LYyw3O)^xin?$X3gb-lil?SEr;b3?)JWR<;&_$Xi=wy-)>h_#zYm9f zTqVB~lG@Yi<|0;mFzB!BNoL_t(YiS3rp34<^c#$Cdb^biEKc+np0MZA@I><-<*5judB zjL=O4$q4n(Au_<%Q-Xh@1#4PS10OH>9^{u7LK4GRZ7b6RWtyOfd_49psyM*wa+0dz zK18wq!ou& z-l%0<8j&B!BctL_t(YiDO_GXmG;A?*9o7yZ=YcwEr*DRR4e5#^C?`09QD^ zZDW8{9G@Ia{HU4sf0+3+u~>21XB13Riw&hG{nwFbhFgRzr#S61Z7epFo&=Xuoc8&@ zjzlxuLb>)^aGI(X!z@Mi8O#Cb;)>Hg)81lOup`GY%`Arb6n`cM3v%Sd1+yH*Qe`#e z|Kwmp=}9Pj#c7{$szsKg*kW=qhQ;RYMl{6)EoPXK49D2`!_#7XG_qspZt;Nmc=!eN z$V%0;!h^5K{C`RVg+^yn-C|g^`2Uo~|D$Hw|No!TfLC$