view skaapsteker/constants.py @ 275:bcdfd2be2eb4

Merged changes, I hope.
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Fri, 08 Apr 2011 19:18:48 +0200
parents 7628467eecd9
children 7db1b7c5c961
line wrap: on
line source

# Useful constants
# copyright skaapsteker 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

DEBUG = True

EPSILON = 1e-10

# Time parameter for double key taps checked.
# This is for both key down time and for gap between taps
DOUBLE_TAP_TIME = 0.15

# Layer defination
class Layers(object):
    BACKGROUND = 0  # Absolute background
    BEHIND = 1  # Layer behind the player
    PLAYER = 2  # Layer of the player and enemies
    IN_FRONT = 3 # Layer in front of the player
    FOREGROUND = 4  # Absolute foreground