X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=tabakrolletjie%2Fconstants.py;h=9e1089281760df2c5782a480faddefae922fa371;hb=18f4a4bb19a0a76131f17fe51590c58a731538a1;hp=66150336c4e0120bcadf741ac5a8c154e132c77c;hpb=03a464fef04162e3928750a31e52cf954d5af7c8;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), +}