X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=tabakrolletjie%2Fconstants.py;h=8edc2e914390357b479b1cba77810648a532a7ef;hb=91a4b8b363cb25c8fe30a4c49bae171c508c7b0e;hp=6f2af9c9b6bbff3516ce32b2d534adc224faa4e6;hpb=a6b63b1890e962955b294ad1024fbf198ecf6368;p=tabakrolletjie.git diff --git a/tabakrolletjie/constants.py b/tabakrolletjie/constants.py index 6f2af9c..8edc2e9 100644 --- a/tabakrolletjie/constants.py +++ b/tabakrolletjie/constants.py @@ -1,10 +1,29 @@ """ Game constants. """ +import os + TITLE = "Space Turnips" +# Debug +DEBUG = os.environ.get("TABAK_DEBUG", "").lower() in ("1", "y", "yes") +DRAW_FPS = os.environ.get("TABAK_DRAW_FPS", "").lower() in ("1", "y", "yes") +# Intervals to average fps over +FPS_FRAMES = 50 + # 704 is 768 minus space for window decorations :) SCREEN_SIZE = (1024, 704) # Frame per second FPS = 60 + +# Pymunk categories +OBSTACLE_CATEGORY = 1 << 0 +LIGHT_CATEGORY = 1 << 1 +MOULD_CATEGORY = 1 << 2 +FITTINGS_CATEGORY = 1 << 3 + +# Font definitions +FONTS = { + 'sans': 'DejaVuSans.ttf', +}