Mercurial > boomslang
annotate gamelib/constants.py @ 114:13d8cb1d5962
Better cursor handling using draw_all() and mouse_delta().
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Tue, 24 Aug 2010 14:51:22 +0200 |
parents | 65976205fc2d |
children | 48d24a48d0ce |
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 |