Trashmaster/map/map_pattern.py
2022-04-27 21:49:17 +02:00

17 lines
460 B
Python

import os
import pygame as pg
HERE_DIR = os.path.abspath(os.path.dirname(__file__))
TEXTURES_DIR = HERE_DIR.rpartition(os.sep)[0]+"\\resources\\textures"
ROAD_DIR = TEXTURES_DIR+"\\road\\"
BUILDING_DIR = TEXTURES_DIR+"\\buliding\\"
def load_img(path):
return pg.image.load(path)
def get_pattern():
return {
0: load_img("resources/textures/road/GTA2_TILE_257.bmp"),
1: load_img("resources/textures/buliding/GTA2_TILE_187.bmp"),
}