diff options
author | davidovski <david@sendula.com> | 2023-01-05 11:35:28 +0000 |
---|---|---|
committer | davidovski <david@sendula.com> | 2023-01-05 11:35:28 +0000 |
commit | b99dbb396c313f4b3130b566c0df42c10eec6084 (patch) | |
tree | ffd2bbebe47f66fd1c21000b371ebc897ef84e34 /config.py |
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 20 |
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" |