projects
/
tabakrolletjie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
589be35
)
Allow setting DEBUG via an environment variable.
author
Simon Cross
<hodgestar@gmail.com>
Tue, 6 Sep 2016 18:44:39 +0000
(20:44 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Tue, 6 Sep 2016 18:44:39 +0000
(20:44 +0200)
tabakrolletjie/constants.py
patch
|
blob
|
history
diff --git
a/tabakrolletjie/constants.py
b/tabakrolletjie/constants.py
index 5acf89aa9fb83519d9aec53157076357cff2adc2..378003bfcdfb49ff720e5906c286352e85301e76 100644
(file)
--- a/
tabakrolletjie/constants.py
+++ b/
tabakrolletjie/constants.py
@@
-1,10
+1,12
@@
""" Game constants.
"""
+import os
+
TITLE = "Space Turnips"
# Debug
-DEBUG =
False
+DEBUG =
os.environ.get("TABAK_DEBUG", "").lower() in ("1", "y", "yes")
# 704 is 768 minus space for window decorations :)
SCREEN_SIZE = (1024, 704)