annotate pyntnclick/constants.py @ 548:ded4324b236e pyntnclick

Moved stuff around, broke everything.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 11 Feb 2012 13:10:18 +0200
parents gamelib/constants.py@f173771c85a8
children 1b1ab71535bd
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
70
213e47dea4d0 Funkier cursor handling
Neil Muller <neil@dip.sun.ac.za>
parents: 68
diff changeset
4
20
177e3a7825e8 Add constants file
Neil Muller <neil@dip.sun.ac.za>
parents:
diff changeset
5 SCREEN = (800, 600)
177e3a7825e8 Add constants file
Neil Muller <neil@dip.sun.ac.za>
parents:
diff changeset
6 FREQ = 44100 # same as audio CD
177e3a7825e8 Add constants file
Neil Muller <neil@dip.sun.ac.za>
parents:
diff changeset
7 BITSIZE = -16 # unsigned 16 bit
177e3a7825e8 Add constants file
Neil Muller <neil@dip.sun.ac.za>
parents:
diff changeset
8 CHANNELS = 2 # 1 == mono, 2 == stereo
177e3a7825e8 Add constants file
Neil Muller <neil@dip.sun.ac.za>
parents:
diff changeset
9 BUFFER = 1024 # audio buffer size in no. of samples
53
3d460c1274ee Add button size constant
Neil Muller <neil@dip.sun.ac.za>
parents: 20
diff changeset
10
3d460c1274ee Add button size constant
Neil Muller <neil@dip.sun.ac.za>
parents: 20
diff changeset
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
420
f173771c85a8 Disable DEBUG.
Jeremy Thurgood <firxen@gmail.com>
parents: 120
diff changeset
16 DEBUG = False
120
48d24a48d0ce Enter and leave hooks
Neil Muller <neil@dip.sun.ac.za>
parents: 105
diff changeset
17
48d24a48d0ce Enter and leave hooks
Neil Muller <neil@dip.sun.ac.za>
parents: 105
diff changeset
18 ENTER, LEAVE = 1, 2