2022-04-08 01:34:11 +02:00
|
|
|
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\\"
|
|
|
|
|
2022-04-23 19:14:23 +02:00
|
|
|
def load_img(path):
|
2022-04-08 01:34:11 +02:00
|
|
|
return pg.image.load(path)
|
|
|
|
|
2022-04-23 19:14:23 +02:00
|
|
|
def get_pattern():
|
2022-04-08 01:34:11 +02:00
|
|
|
return {
|
2022-04-23 19:14:23 +02:00
|
|
|
0: load_img(ROAD_DIR+"GTA2_TILE_257.bmp"),
|
|
|
|
1: load_img(BUILDING_DIR+"GTA2_TILE_187.bmp"),
|
2022-04-08 01:34:11 +02:00
|
|
|
}
|