moved maps to cache dir

This commit is contained in:
2024-06-29 00:53:05 +02:00
parent ca74986b82
commit bbb248da16
2 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,8 @@
import os
from math import floor
from typing import Optional
import platformdirs
import pygame
from src.image_handler import ImageHandler
@ -10,7 +12,7 @@ class Editor:
WIDTH: int = 800
HEIGHT: int = 600
MAP_SIZE: int = 1024
MAPS_DIR: str = "/tmp/lycacraft_maps"
MAPS_DIR: str = os.path.join(platformdirs.user_cache_dir(appname="lycacraft-paths", appauthor="Lycacraft"), "maps")
ZOOMS: tuple[float] = (0.25, 0.5, 1, 2, 4)
CROSSHAIR_SIZE: int = 10