Mercurial > pyntnclick
annotate gamelib/constants.py @ 324:3476e8f3b100
Fixed mouse and cursor handling.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 28 Aug 2010 13:30:44 +0200 |
parents | 48d24a48d0ce |
children | f173771c85a8 |
rev | line source |
---|---|
20 | 1 # Useful constants |
2 # copyright boomslang team (see COPYRIGHT file for details) | |
3 | |
70 | 4 |
20 | 5 SCREEN = (800, 600) |
6 FREQ = 44100 # same as audio CD | |
7 BITSIZE = -16 # unsigned 16 bit | |
8 CHANNELS = 2 # 1 == mono, 2 == stereo | |
9 BUFFER = 1024 # audio buffer size in no. of samples | |
53 | 10 |
11 BUTTON_SIZE = 50 | |
93
350ce4ebe122
Detail view without any functionality.
Jeremy Thurgood <firxen@gmail.com>
parents:
70
diff
changeset
|
12 SCENE_SIZE = (SCREEN[0], SCREEN[1] - BUTTON_SIZE) |
105
65976205fc2d
Rough Stab at basic animation support
Neil Muller <neil@dip.sun.ac.za>
parents:
93
diff
changeset
|
13 # Animation frame rate |
65976205fc2d
Rough Stab at basic animation support
Neil Muller <neil@dip.sun.ac.za>
parents:
93
diff
changeset
|
14 FRAME_RATE = 25 |
68
158a13a48d48
Show interact rectangles when constants.DEBUG is True.
Simon Cross <hodgestar+bzr@gmail.com>
parents:
53
diff
changeset
|
15 |
158a13a48d48
Show interact rectangles when constants.DEBUG is True.
Simon Cross <hodgestar+bzr@gmail.com>
parents:
53
diff
changeset
|
16 DEBUG = True |
120 | 17 |
18 ENTER, LEAVE = 1, 2 |