Mercurial > sypikslang
annotate gamelib/constants.py @ 87:d93e1ea2bd0d
Fix method name assumption bug
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Wed, 09 May 2012 20:06:44 +0200 |
parents | a40a76012bd7 |
children | 50f8476aa929 |
rev | line source |
---|---|
48 | 1 # The usual game constants |
2 | |
3 WIDTH = 800 | |
4 HEIGHT = 600 | |
5 SCREEN = (WIDTH, HEIGHT) | |
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 |
80
a40a76012bd7
Refactor message handling so we can deal with in the gui
Neil Muller <drnlmuller@gmail.com>
parents:
61
diff
changeset
|
13 |
a40a76012bd7
Refactor message handling so we can deal with in the gui
Neil Muller <drnlmuller@gmail.com>
parents:
61
diff
changeset
|
14 # Result codes for UI hints |
a40a76012bd7
Refactor message handling so we can deal with in the gui
Neil Muller <drnlmuller@gmail.com>
parents:
61
diff
changeset
|
15 (MAJOR_SETBACK, FAILURE, SUCCESS, MAJOR_SUCCESS, GAME_WIN, NEW_SCIENCE, |
a40a76012bd7
Refactor message handling so we can deal with in the gui
Neil Muller <drnlmuller@gmail.com>
parents:
61
diff
changeset
|
16 NEW_SCHEMATIC) = range(7) |