comparison gamelib/constants.py @ 853:f95830b58336

Merge pyntnclick
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 21 Jun 2014 22:04:35 +0200
parents bdaffaa8b6bf
children
comparison
equal deleted inserted replaced
546:ad4d6ffd25d7 853:f95830b58336
1 # Useful constants 1 from pyntnclick.constants import GameConstants
2 # copyright boomslang team (see COPYRIGHT file for details) 2
3 # Anything here has to be explicitly translated
4 # This module is imported before we've set up i18n
5 _ = lambda x: x
3 6
4 7
5 SCREEN = (800, 600) 8 class SSConstants(GameConstants):
6 FREQ = 44100 # same as audio CD 9 title = _('Suspended Sentence')
7 BITSIZE = -16 # unsigned 16 bit 10 icon = 'suspended_sentence24x24.png'
8 CHANNELS = 2 # 1 == mono, 2 == stereo 11 short_name = 'suspended-sentence'
9 BUFFER = 1024 # audio buffer size in no. of samples
10
11 BUTTON_SIZE = 50
12 SCENE_SIZE = (SCREEN[0], SCREEN[1] - BUTTON_SIZE)
13 # Animation frame rate
14 FRAME_RATE = 25
15
16 DEBUG = False
17
18 ENTER, LEAVE = 1, 2