annotate gamelib/constants.py @ 20:177e3a7825e8

Add constants file
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 22 Aug 2010 17:07:46 +0200
parents
children 3d460c1274ee
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20
177e3a7825e8 Add constants file
Neil Muller <neil@dip.sun.ac.za>
parents:
diff changeset
1 # Useful constants
177e3a7825e8 Add constants file
Neil Muller <neil@dip.sun.ac.za>
parents:
diff changeset
2 # copyright boomslang team (see COPYRIGHT file for details)
177e3a7825e8 Add constants file
Neil Muller <neil@dip.sun.ac.za>
parents:
diff changeset
3
177e3a7825e8 Add constants file
Neil Muller <neil@dip.sun.ac.za>
parents:
diff changeset
4 SCREEN = (800, 600)
177e3a7825e8 Add constants file
Neil Muller <neil@dip.sun.ac.za>
parents:
diff changeset
5 FREQ = 44100 # same as audio CD
177e3a7825e8 Add constants file
Neil Muller <neil@dip.sun.ac.za>
parents:
diff changeset
6 BITSIZE = -16 # unsigned 16 bit
177e3a7825e8 Add constants file
Neil Muller <neil@dip.sun.ac.za>
parents:
diff changeset
7 CHANNELS = 2 # 1 == mono, 2 == stereo
177e3a7825e8 Add constants file
Neil Muller <neil@dip.sun.ac.za>
parents:
diff changeset
8 BUFFER = 1024 # audio buffer size in no. of samples