Add 'draw_fps' setting and support
[tabakrolletjie.git] / tabakrolletjie / constants.py
index 92a7c6fdfc0b3fe5f81c78faea376d24c6cfd605..8edc2e914390357b479b1cba77810648a532a7ef 100644 (file)
@@ -7,6 +7,9 @@ TITLE = "Space Turnips"
 
 # Debug
 DEBUG = os.environ.get("TABAK_DEBUG", "").lower() in ("1", "y", "yes")
+DRAW_FPS = os.environ.get("TABAK_DRAW_FPS", "").lower() in ("1", "y", "yes")
+# Intervals to average fps over
+FPS_FRAMES = 50
 
 # 704 is 768 minus space for window decorations :)
 SCREEN_SIZE = (1024, 704)
@@ -19,3 +22,8 @@ OBSTACLE_CATEGORY = 1 << 0
 LIGHT_CATEGORY = 1 << 1
 MOULD_CATEGORY = 1 << 2
 FITTINGS_CATEGORY = 1 << 3
+
+# Font definitions
+FONTS = {
+    'sans': 'DejaVuSans.ttf',
+}