Mercurial > sypikslang
annotate gamelib/constants.py @ 182:0cb67bf20f89
Remove unneeded skellington cruft
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 12 May 2012 12:51:19 +0200 |
parents | 80cce62f29fb |
children | 75033f790e7d |
rev | line source |
---|---|
48 | 1 # The usual game constants |
2 | |
147
3d24b18d1785
Screen size back to 800x600.
Jeremy Thurgood <firxen@gmail.com>
parents:
143
diff
changeset
|
3 WIDTH = 800 |
3d24b18d1785
Screen size back to 800x600.
Jeremy Thurgood <firxen@gmail.com>
parents:
143
diff
changeset
|
4 HEIGHT = 600 |
48 | 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 |
163
80cce62f29fb
Add placeholder icons for now
Neil Muller <drnlmuller@gmail.com>
parents:
147
diff
changeset
|
8 WINDOW_ICON = "icons/icon_24.png" |
80cce62f29fb
Add placeholder icons for now
Neil Muller <drnlmuller@gmail.com>
parents:
147
diff
changeset
|
9 |
61
a253fae32a6f
Add no-sound option (slow shutdown bug workaround)
Neil Muller <drnlmuller@gmail.com>
parents:
48
diff
changeset
|
10 # Sound related (standard options) |
a253fae32a6f
Add no-sound option (slow shutdown bug workaround)
Neil Muller <drnlmuller@gmail.com>
parents:
48
diff
changeset
|
11 FREQ = 44100 |
a253fae32a6f
Add no-sound option (slow shutdown bug workaround)
Neil Muller <drnlmuller@gmail.com>
parents:
48
diff
changeset
|
12 BITSIZE = -16 # unsigned 16 bit |
a253fae32a6f
Add no-sound option (slow shutdown bug workaround)
Neil Muller <drnlmuller@gmail.com>
parents:
48
diff
changeset
|
13 CHANNELS = 2 |
a253fae32a6f
Add no-sound option (slow shutdown bug workaround)
Neil Muller <drnlmuller@gmail.com>
parents:
48
diff
changeset
|
14 BUFFER = 1024 |
80
a40a76012bd7
Refactor message handling so we can deal with in the gui
Neil Muller <drnlmuller@gmail.com>
parents:
61
diff
changeset
|
15 |
a40a76012bd7
Refactor message handling so we can deal with in the gui
Neil Muller <drnlmuller@gmail.com>
parents:
61
diff
changeset
|
16 # Result codes for UI hints |
138
14917385a0fd
Better handling of mission results and turn-end messages.
Jeremy Thurgood <firxen@gmail.com>
parents:
123
diff
changeset
|
17 (MAJOR_SETBACK, FAILURE, SUCCESS, MAJOR_SUCCESS, GAME_WIN, INFO) = range(6) |
96 | 18 |
19 # Planning to take over the: | |
20 MILESTONES = ("basement", "neighbourhood", "city", "world") | |
21 M_VALS = dict((name, i) for i, name in enumerate(MILESTONES)) |