Mercurial > boomslang
comparison pyntnclick/constants.py @ 854:79b5c1be9a5e default tip
Remove pyntnclick, it's its own library, now
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 21 Jun 2014 22:06:09 +0200 |
parents | f95830b58336 |
children |
comparison
equal
deleted
inserted
replaced
852:f95830b58336 | 854:79b5c1be9a5e |
---|---|
1 # Useful constants | |
2 # copyright boomslang team (see COPYRIGHT file for details) | |
3 | |
4 import os | |
5 | |
6 DEBUG_ENVVAR = 'PYNTNCLICK_DEBUG' | |
7 | |
8 | |
9 def _get_debug(): | |
10 debug = os.getenv(DEBUG_ENVVAR, default=False) | |
11 if debug in [False, 'False', '0']: | |
12 return False | |
13 return True | |
14 | |
15 | |
16 class GameConstants(object): | |
17 title = None | |
18 short_name = 'pyntnclick' | |
19 # Icon for the main window, in the icons basedir | |
20 icon = None | |
21 | |
22 screen = (800, 600) | |
23 snd_freq = 44100 | |
24 snd_bitsize = -16 | |
25 snd_channels = 2 | |
26 snd_buffer = 1024 # no. of samples | |
27 | |
28 button_size = 50 | |
29 scene_size = (screen[0], screen[1] - button_size) | |
30 frame_rate = 25 | |
31 debug = _get_debug() | |
32 | |
33 font = 'DejaVuSans.ttf' | |
34 bold_font = 'DejaVuSans-Bold.ttf' | |
35 mono_font = 'DejaVuSans-Mono.ttf' | |
36 font_size = 16 | |
37 text_color = 'black' | |
38 label_padding = 10 | |
39 label_border = 3 | |
40 label_bg_color = (180, 180, 180, 220) | |
41 label_border_color = (0, 0, 0, 0xFF) | |
42 button_color = (0xFF, 0xFF, 0xFF, 0xFF) | |
43 button_bg_color = (0x66, 0x66, 0x66, 0xFF) | |
44 button_disabled_color = (0x66, 0x66, 0x66, 0xFF) | |
45 | |
46 modal_obscure_color = (0, 0, 0, 0xB0) |