AIprojekt-wozek/Global_variables.py

23 lines
539 B
Python
Raw Normal View History

# Global Variables
class Global_variables(object):
_instance = None
WINDOW_X = 1400
WINDOW_Y = 750
RECT_SIZE = 50
DIMENSION_X = 28
DIMENSION_Y = 15
RECT_COLOR = (70, 77, 87)
SHELF_COLOR = (143, 68, 33)
def __init__(self) -> None:
dim_x = 28
dim_y = 15
self.GRID = [["empty" for i in range(dim_x)] for j in range(dim_y)]
def __new__(cls):
if cls._instance is None:
cls._instance = super(Global_variables, cls).__new__(cls)
return cls._instance