X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=tabakrolletjie%2Fconstants.py;h=9e1089281760df2c5782a480faddefae922fa371;hb=28c8033fc20fc71e8a5e39fde868ac3f0ccac374;hp=66150336c4e0120bcadf741ac5a8c154e132c77c;hpb=42539dc3ca4c36a556fa1dba1e19169267f5d98f;p=tabakrolletjie.git diff --git a/tabakrolletjie/constants.py b/tabakrolletjie/constants.py index 6615033..9e10892 100644 --- a/tabakrolletjie/constants.py +++ b/tabakrolletjie/constants.py @@ -17,6 +17,9 @@ SCREEN_SIZE = (1024, 704) # Frame per second FPS = 60 +# Night length in ticks +NIGHT_LENGTH = 3000 + # Pymunk categories OBSTACLE_CATEGORY = 1 << 0 LIGHT_CATEGORY = 1 << 1 @@ -38,3 +41,14 @@ BUFFER = 1024 DEFAULT_VOLUME = 1.0 NO_SOUND = os.environ.get("TABAK_NO_SOUND", "").lower() in ("1", "y", "yes") + +# Color constants +COLOURS = { + "red": (255, 0, 0), + "green": (0, 255, 0), + "blue": (0, 0, 255), + "cyan": (0, 255, 255), + "yellow": (255, 255, 0), + "magenta": (255, 0, 255), + "white": (255, 255, 255), +}