projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement static puzzle deck construction.
[naja.git]
/
naja
/
constants.py
diff --git
a/naja/constants.py
b/naja/constants.py
index 424f65a0ec661563db51a6b8dd33f625b3d6ffb0..25def14c1a7c3260b44e01c7756cd4074ebb3d60 100644
(file)
--- a/
naja/constants.py
+++ b/
naja/constants.py
@@
-13,6
+13,11
@@
DEFAULTS = dict(
debug=False,
sound=True,
music=True,
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
)
# Sound constants
@@
-89,9
+94,23
@@
KEYS = AttrDict({
'SELECT': (pgl.K_RETURN, pgl.K_KP_ENTER),
'QUIT': (pgl.K_ESCAPE, pgl.K_q),
'SWITCH': (pgl.K_TAB,),
'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),
PALETTE = AttrDict({
'BLACK': (0, 0, 0),