X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=tabakrolletjie%2Fconstants.py;h=6ddfd9fd01083bda88ae028072ba811a1df1c762;hb=61244c813873a57ad6bd7ff76c6faf49ce2a23ee;hp=4cd1f9d5572ec4e512b549f6e34ef3337a083404;hpb=9210e142ff050395c274926f99ef577a46f84736;p=tabakrolletjie.git diff --git a/tabakrolletjie/constants.py b/tabakrolletjie/constants.py index 4cd1f9d..6ddfd9f 100644 --- a/tabakrolletjie/constants.py +++ b/tabakrolletjie/constants.py @@ -15,13 +15,17 @@ FPS_FRAMES = 50 SCREEN_SIZE = (1024, 704) # Frame per second -FPS = 60 +FPS = 30 + +# Night length in ticks +NIGHT_LENGTH = 1500 # Pymunk categories OBSTACLE_CATEGORY = 1 << 0 LIGHT_CATEGORY = 1 << 1 MOULD_CATEGORY = 1 << 2 FITTINGS_CATEGORY = 1 << 3 +TURNIP_CATEGORY = 1 << 4 # Font definitions FONTS = { @@ -37,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), +}