annotate gamelib/constants.py @ 61:a253fae32a6f

Add no-sound option (slow shutdown bug workaround)
author Neil Muller <drnlmuller@gmail.com>
date Tue, 08 May 2012 16:27:44 +0200
parents a2980cc9a060
children a40a76012bd7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
48
a2980cc9a060 Factor out some constants
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
1 # The usual game constants
a2980cc9a060 Factor out some constants
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
2
a2980cc9a060 Factor out some constants
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
3 WIDTH = 800
a2980cc9a060 Factor out some constants
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
4 HEIGHT = 600
a2980cc9a060 Factor out some constants
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
5 SCREEN = (WIDTH, HEIGHT)
a2980cc9a060 Factor out some constants
Neil Muller <drnlmuller@gmail.com>
parents:
diff changeset
6 FPS = 30
61
a253fae32a6f Add no-sound option (slow shutdown bug workaround)
Neil Muller <drnlmuller@gmail.com>
parents: 48
diff changeset
7
a253fae32a6f Add no-sound option (slow shutdown bug workaround)
Neil Muller <drnlmuller@gmail.com>
parents: 48
diff changeset
8 # Sound related (standard options)
a253fae32a6f Add no-sound option (slow shutdown bug workaround)
Neil Muller <drnlmuller@gmail.com>
parents: 48
diff changeset
9 FREQ = 44100
a253fae32a6f Add no-sound option (slow shutdown bug workaround)
Neil Muller <drnlmuller@gmail.com>
parents: 48
diff changeset
10 BITSIZE = -16 # unsigned 16 bit
a253fae32a6f Add no-sound option (slow shutdown bug workaround)
Neil Muller <drnlmuller@gmail.com>
parents: 48
diff changeset
11 CHANNELS = 2
a253fae32a6f Add no-sound option (slow shutdown bug workaround)
Neil Muller <drnlmuller@gmail.com>
parents: 48
diff changeset
12 BUFFER = 1024