forked from MatWich/DungeonMayhemClone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
30 lines (24 loc) · 831 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
try:
import os
from PyQt5.QtWidgets import QApplication
except ImportError:
raise ImportError("Cannot import all modules in config.py")
SCR_SIZE = (WIDTH, HEIGHT) = (900, 500)
TITLE = "Dungeon Maythem Clone Game"
PROJECT_DIR = os.path.dirname(__file__)
ASSETS_DIR = os.path.join(PROJECT_DIR, "assets")
RED_DECK_DIR = os.path.join(ASSETS_DIR, "red_deck")
YELLOW_DECK_DIR = os.path.join(ASSETS_DIR, "yellow_deck")
PURPLE_DECK_DIR = os.path.join(ASSETS_DIR, "purple_deck")
GREEN_DECK_DIR = os.path.join(ASSETS_DIR, "green_deck")
RED = "Palladin"
YELLOW = "Monk"
PURPLE = "Devil"
GREEN = "Barbarian"
COLOR_LIST = {RED: "rgb(214, 48, 2)",
YELLOW: "rgb(204, 180, 75)",
PURPLE: "rgb(170, 75, 204)",
GREEN: "rgb(75, 204, 122)"
}
def exit():
QApplication.quit()