Simple light damage using lit_by
[tabakrolletjie.git] / tabakrolletjie / constants.py
index 6f2af9c9b6bbff3516ce32b2d534adc224faa4e6..92a7c6fdfc0b3fe5f81c78faea376d24c6cfd605 100644 (file)
@@ -1,10 +1,21 @@
 """ Game constants.
 """
 
+import os
+
 TITLE = "Space Turnips"
 
+# Debug
+DEBUG = os.environ.get("TABAK_DEBUG", "").lower() in ("1", "y", "yes")
+
 # 704 is 768 minus space for window decorations :)
 SCREEN_SIZE = (1024, 704)
 
 # Frame per second
 FPS = 60
+
+# Pymunk categories
+OBSTACLE_CATEGORY = 1 << 0
+LIGHT_CATEGORY = 1 << 1
+MOULD_CATEGORY = 1 << 2
+FITTINGS_CATEGORY = 1 << 3