# Main settings WIDTH = 20 HEIGHT = 20 FPS = 5 WALL_COLOR = "\u001b[31m" RESET_COLOR = "\u001b[0m" # Buttons QUIT_BUTTON = 'q' PAUSE_BUTTON = 'p' LEFT_BUTTON = 'a' RIGHT_BUTTON = 'd' UP_BUTTON = 'w' DOWN_BUTTON = 's' # Player settings D_LEFT = "LEFT" D_RIGHT = "RIGHT" D_UP = "UP" D_DOWN = "DOWN" MAIN_DIRECTION = D_DOWN MAIN_X = 0 MAIN_Y = 0 # Out types SPACE = 0 WALL = 1 FOOD = 2 WALL_FOOD = 3 HEAD = 4 TT_SPACE = " " TT_WALL = "\u001b[34m{}\u001b[0m".format("██") TT_FOOD = "\u001b[33m{}\u001b[0m".format("██") TT_WALL_FOOD = "\u001b[32m{}\u001b[0m".format("██") TT_HEAD = "\u001b[36m{}\u001b[0m".format("██") # Globals is_pause = False