Mercurial > skaapsteker
view skaapsteker/constants.py @ 318:bd137fdfe3c6
Draw tails
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 00:29:03 +0200 |
parents | f29999d1bba6 |
children | f5148f70ca84 |
line wrap: on
line source
# Useful constants # copyright skaapsteker team (see COPYRIGHT file for details) import pygame 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 class FoxHud(object): TEXT = pygame.Color(255, 255, 255, 196) HEALTH_BACKGROUND = pygame.Color(128, 64, 0, 128) HEALTH_FOREGROUND = pygame.Color(255, 64, 0, 196) HEALTH_HEIGHT = 160 HEALTH_WIDTH = 20 INVENTORY_SIZE = 48 TAIL_START = 100 TAIL_OFFSET = 30 TAIL_POSITIONS = { 'shapeshift' : TAIL_START, 'fireball' : TAIL_START + TAIL_OFFSET, 'sprint' : TAIL_START + 2 * TAIL_OFFSET, 'invisibility' : TAIL_START + 3 * TAIL_OFFSET, 'flight' : TAIL_START + 4 * TAIL_OFFSET, 'shield' : TAIL_START + 5 * TAIL_OFFSET, 'steal' : TAIL_START + 6 * TAIL_OFFSET, 'lightning' : TAIL_START + 7 * TAIL_OFFSET, }