Trashmaster/map/map_pattern.py

17 lines
430 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(ROAD_DIR+"GTA2_TILE_257.bmp"),
1: load_img(BUILDING_DIR+"GTA2_TILE_187.bmp"),
}