view gamelib/constants.py @ 109:66898d810247

Add hackish speech support (run regen-speech.py to generate files -- needs espeak and oggenc).
author Simon Cross <simon@simonx>
date Tue, 24 Aug 2010 14:32:52 +0200
parents 65976205fc2d
children 48d24a48d0ce
line wrap: on
line source

# Useful constants
# copyright boomslang team (see COPYRIGHT file for details)


SCREEN = (800, 600)
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

BUTTON_SIZE = 50
SCENE_SIZE = (SCREEN[0], SCREEN[1] - BUTTON_SIZE)
# Animation frame rate
FRAME_RATE = 25

DEBUG = True