X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fconstants.py;h=25def14c1a7c3260b44e01c7756cd4074ebb3d60;hb=9f6988141b3238d693a6c4ee5db3fb1d4af56ce0;hp=440a2d5441a48ab8ed5d07c103afca03d1c234c9;hpb=153fc3af78c2489acb6ba2e175c96a65b7a04ebf;p=naja.git diff --git a/naja/constants.py b/naja/constants.py index 440a2d5..25def14 100644 --- a/naja/constants.py +++ b/naja/constants.py @@ -13,6 +13,11 @@ DEFAULTS = dict( debug=False, sound=True, music=True, + # We calculate the default in options.py + save_location=None, + # Debug flags: + initial_bits=None, + cheat_enabled=False, ) # Sound constants @@ -51,6 +56,11 @@ MOVES = AttrDict({ }) CHESS_PIECES = AttrDict((k, v) for k, v in MOVES.items() if v > 0) +ROTATION = AttrDict({ + 'CLOCKWISE': 0, + 'ANTICLOCKWISE': 1, +}) + # Player defaults PLAYER_DEFAULTS = AttrDict({ 'INITIAL_BITS': 0x0f, @@ -84,9 +94,23 @@ KEYS = AttrDict({ 'SELECT': (pgl.K_RETURN, pgl.K_KP_ENTER), 'QUIT': (pgl.K_ESCAPE, pgl.K_q), 'SWITCH': (pgl.K_TAB,), + + 'KONAMI': ( + pgl.K_UP, pgl.K_DOWN, pgl.K_LEFT, pgl.K_RIGHT, pgl.K_a, pgl.K_b), }) -# PALETTE +KONAMI_CODE = [ + pgl.K_UP, + pgl.K_UP, + pgl.K_DOWN, + pgl.K_DOWN, + pgl.K_LEFT, + pgl.K_RIGHT, + pgl.K_LEFT, + pgl.K_RIGHT, + pgl.K_b, + pgl.K_a, +] PALETTE = AttrDict({ 'BLACK': (0, 0, 0),