From 2f300a221b850ae66a785523436511c06b318a22 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 6 Jul 2024 11:58:58 -0500 Subject: add level select screen --- main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'main.js') 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); } -- cgit v1.2.1