summaryrefslogtreecommitdiff
path: root/levelSelect.js
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2024-07-07 12:28:58 -0500
committersanine <sanine.not@pm.me>2024-07-07 12:28:58 -0500
commit553218a6214b0473f1ac8bad9e832fc5ea84199c (patch)
tree910e760f5b3e0e3051110fe5e17f3410855614c7 /levelSelect.js
parent17d13e36a33d16e5242ae3b185e10928f41dd69d (diff)
make debug param nicer
Diffstat (limited to 'levelSelect.js')
-rw-r--r--levelSelect.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/levelSelect.js b/levelSelect.js
index 04c65a6..7f0a629 100644
--- a/levelSelect.js
+++ b/levelSelect.js
@@ -1,3 +1,5 @@
+const DEBUG = false;
+
import{ setupLevel, setupLevelUi } from './level.js';
@@ -63,8 +65,7 @@ export function setupLevelSelectUi(root, sfx) {
const levelPicker = name => {
const [ dependencies, level ] = levels[name];
const allDependenciesSatisfied = dependencies.map(x => levels[x][1].completed).reduce((acc, x) => acc && x, true);
- // if (allDependenciesSatisfied) {
- if (true) {
+ if (DEBUG || allDependenciesSatisfied) {
sfx.listAppearAudio.currentTime = 0;
sfx.listAppearAudio.play();
const button = document.createElement('input');