1 from naja.attrdict import AttrDict
6 FONT = 'DejaVuSans.ttf'
17 FREQ = 44100 # same as audio CD
18 BITSIZE = -16 # unsigned 16 bit
19 CHANNELS = 2 # 1 == mono, 2 == stereo
20 BUFFER = 1024 # audio buffer size in no. of samples
21 DEFAULT_SOUND_VOLUME = 1.0 # sound volume
22 DEFAULT_MUSIC_VOLUME = 0.3 # music volume
37 DIRECTION_BITS = AttrDict((k, v) for k, v in BITS.items() if v < 4)
38 CONDITION_BITS = AttrDict((k, v) for k, v in BITS.items() if v >= 4)
41 PLAYER_DEFAULTS = AttrDict({
42 'INITIAL_BITS': BITS.NORTH | BITS.SOUTH | BITS.EAST | BITS.WEST,
43 'INITIAL_POS': (2, 2),
50 BOARD_SIZE = (5 * TILE_SIZE[0], 5 * TILE_SIZE[1])
51 BIT_SIZE = (5 * TILE_SIZE[0], (SCREEN[1] - 5 * TILE_SIZE[1]) // 2)
52 INFO_SIZE = (SCREEN[0] - 5 * TILE_SIZE[0], SCREEN[1])
53 PLAYER_SIZE = (64, 96)