comparison pyntnclick/constants.py @ 576:1b1ab71535bd pyntnclick

Classify constants, which involves a whole bunch of XXX comments
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 11 Feb 2012 16:02:06 +0200
parents ded4324b236e
children a9e9a7fbdbcf
comparison
equal deleted inserted replaced
575:970cdc219e15 576:1b1ab71535bd
1 # Useful constants 1 # Useful constants
2 # copyright boomslang team (see COPYRIGHT file for details) 2 # copyright boomslang team (see COPYRIGHT file for details)
3 3
4 4
5 SCREEN = (800, 600) 5 class GameConstants(object):
6 FREQ = 44100 # same as audio CD 6 screen = (800, 600)
7 BITSIZE = -16 # unsigned 16 bit 7 snd_freq = 44100
8 CHANNELS = 2 # 1 == mono, 2 == stereo 8 snd_bitsize = -16
9 BUFFER = 1024 # audio buffer size in no. of samples 9 snd_channels = 2
10 snd_buffer = 1024 # no. of samples
10 11
11 BUTTON_SIZE = 50 12 button_size = 50
12 SCENE_SIZE = (SCREEN[0], SCREEN[1] - BUTTON_SIZE) 13 scene_size = (screen[0], screen[1] - button_size)
13 # Animation frame rate 14 frame_rate = 25
14 FRAME_RATE = 25 15 debug = False
15 16
16 DEBUG = False 17 # User event IDs:
17 18 enter = 1
18 ENTER, LEAVE = 1, 2 19 leave = 2