summaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2024-07-06 11:58:58 -0500
committersanine <sanine.not@pm.me>2024-07-06 11:58:58 -0500
commit2f300a221b850ae66a785523436511c06b318a22 (patch)
treefafb251a6fcb63949afe148ddf262ba3d6f7faa4 /main.js
parent71a61ed1c3929f9d4cb615cf691bb980a8005c9e (diff)
add level select screen
Diffstat (limited to 'main.js')
-rw-r--r--main.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.js b/main.js
index 7ce6e6f..3ca2f27 100644
--- a/main.js
+++ b/main.js
@@ -1,3 +1,4 @@
+import { setupLevelSelectUi } from './levelSelect.js';
import { setupLevel, setupLevelUi } from './level.js';
window.onload = () => {
@@ -34,8 +35,9 @@ window.onload = () => {
)
musicList[0].element.play();
- const level = setupLevel([[2, 2], [3,3]], [7, 7]);
- const ui = setupLevelUi(level, root, audio);
+ // const level = setupLevel([[2, 2], [3,3]], [7, 7]);
+ // const ui = setupLevelUi(level, root, audio);
+ setupLevelSelectUi(root, audio);
};
root.appendChild(start);
}