projects
/
tabakrolletjie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor mould drawing code. Use shape_query for lighting information
[tabakrolletjie.git]
/
tabakrolletjie
/
constants.py
diff --git
a/tabakrolletjie/constants.py
b/tabakrolletjie/constants.py
index 8e6bac7d4ba92dacb82cd72f5ee83e98e967e57f..8edc2e914390357b479b1cba77810648a532a7ef 100644
(file)
--- a/
tabakrolletjie/constants.py
+++ b/
tabakrolletjie/constants.py
@@
-1,10
+1,15
@@
""" Game constants.
"""
""" Game constants.
"""
+import os
+
TITLE = "Space Turnips"
# Debug
TITLE = "Space Turnips"
# Debug
-DEBUG = False
+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)
# 704 is 768 minus space for window decorations :)
SCREEN_SIZE = (1024, 704)
@@
-15,3
+20,10
@@
FPS = 60
# Pymunk categories
OBSTACLE_CATEGORY = 1 << 0
LIGHT_CATEGORY = 1 << 1
# Pymunk categories
OBSTACLE_CATEGORY = 1 << 0
LIGHT_CATEGORY = 1 << 1
+MOULD_CATEGORY = 1 << 2
+FITTINGS_CATEGORY = 1 << 3
+
+# Font definitions
+FONTS = {
+ 'sans': 'DejaVuSans.ttf',
+}