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