DEFAULT_MUSIC_VOLUME = 0.3 # music volume
# Player bits
-BITS = AttrDict({
- # Direction bits
+DIRECTION_BITS = AttrDict({
'NORTH': 0,
'SOUTH': 1,
'EAST': 2,
'WEST': 3,
- # Condition bits
+})
+CONDITION_BITS = AttrDict({
'BLUE': 4,
'GREEN': 5,
'RED': 6,
'MSB': 7,
})
-DIRECTION_BITS = AttrDict((k, v) for k, v in BITS.items() if v < 4)
-CONDITION_BITS = AttrDict((k, v) for k, v in BITS.items() if v >= 4)
+BITS = AttrDict()
+BITS.update(DIRECTION_BITS)
+BITS.update(CONDITION_BITS)
# PLAYER MOVES
MOVES = AttrDict({