summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'config.py')
-rw-r--r--config.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/config.py b/config.py
new file mode 100644
index 0000000..c864a31
--- /dev/null
+++ b/config.py
@@ -0,0 +1,20 @@
+from dataclasses import dataclass
+
+
+@dataclass
+class Config:
+ """Various constants and configuration for the game"""
+
+ WIDTH = 100
+ HEIGHT = 200
+ # Number of window pixels used for each game "pixel"
+ SCALE = 6
+
+ FPS = 30
+
+ NICK_LEN = 3
+ DEVMODE = False
+
+ LEADERBOARD_FILE = "leaderboard"
+ SAVE_FILE = "save"
+ SETTINGS_FILE = "settings"