Mercurial > mamba
view mamba/constants.py @ 414:442007704a9a
TODO maintenance.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 17 Sep 2011 14:53:18 +0200 |
parents | 001c3797a63b |
children | f81c2ad8929b |
line wrap: on
line source
from pygame.locals import K_ESCAPE, K_q, K_BACKSPACE, K_DELETE # Display constants SCREEN = (800, 600) EDIT_SCREEN = (1000, 600) TILE_SIZE = (20, 20) # Miscellaneous constants NAME = "Unamed Mamba game" FPS = 60 LEVEL_SERVER = "http://ctpug.org.za/mamba/" # Sound constants FREQ = 44100 # same as audio CD BITSIZE = -16 # unsigned 16 bit CHANNELS = 2 # 1 == mono, 2 == stereo BUFFER = 1024 # audio buffer size in no. of samples # Keyboard constants ESCAPE_KEYS = (K_ESCAPE, K_q, K_BACKSPACE) DELETE_KEYS = (K_BACKSPACE, K_DELETE) # For easy access later DEFAULT_FONT = 'DejaVuSans.ttf' FONT_SIZE = 16 # Colours FOCUS_COLOR = 'yellow' COLOR = 'black' # Special level directory files RESERVED_NAMES = ['index'] # Directions UP, DOWN, LEFT, RIGHT = [(0, -1), (0, 1), (-1, 0), (1, 0)] # Default command-line options DEFAULTS = { 'debug': False, 'sound': True, 'level': None, 'uncurated': None, 'list_uncurated': False, 'edit': False, 'save_location': None, # Determined by a function in options }