projects
/
tabakrolletjie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add second level.
[tabakrolletjie.git]
/
tabakrolletjie
/
constants.py
diff --git
a/tabakrolletjie/constants.py
b/tabakrolletjie/constants.py
index 6ddfd9fd01083bda88ae028072ba811a1df1c762..63e13dd63ebf6f53ec36567469642373203d263b 100644
(file)
--- a/
tabakrolletjie/constants.py
+++ b/
tabakrolletjie/constants.py
@@
-17,8
+17,10
@@
SCREEN_SIZE = (1024, 704)
# Frame per second
FPS = 30
# Frame per second
FPS = 30
-# Night length in ticks
+# Night length in ticks
and hours
NIGHT_LENGTH = 1500
NIGHT_LENGTH = 1500
+NIGHT_LENGTH_HOURS = 12
+NIGHT_HOURS_PER_TICK = float(NIGHT_LENGTH_HOURS) / NIGHT_LENGTH
# Pymunk categories
OBSTACLE_CATEGORY = 1 << 0
# Pymunk categories
OBSTACLE_CATEGORY = 1 << 0