summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2024-07-07 14:30:00 -0500
committersanine <sanine.not@pm.me>2024-07-07 14:30:00 -0500
commitc6c473e03c7b9a993ccaf28bcff2d87fbdf9c931 (patch)
tree168d8ea222df2b94cf82bf8034b3c3588d17cb34
parentb648eaffe1f9a33280ef4486474ca0aa52dac9f8 (diff)
add lissajous figure level
-rw-r--r--.levelSelect.js.swobin0 -> 16384 bytes
-rw-r--r--levelSelect.js8
2 files changed, 7 insertions, 1 deletions
diff --git a/.levelSelect.js.swo b/.levelSelect.js.swo
new file mode 100644
index 0000000..f59d1f9
--- /dev/null
+++ b/.levelSelect.js.swo
Binary files differ
diff --git a/levelSelect.js b/levelSelect.js
index 7f0a629..cdbca2b 100644
--- a/levelSelect.js
+++ b/levelSelect.js
@@ -1,4 +1,4 @@
-const DEBUG = false;
+const DEBUG = true;
import{ setupLevel, setupLevelUi } from './level.js';
@@ -58,6 +58,12 @@ const levels = {
buildLevel(t => Math.cos(t)*t, t => Math.sin(t)*t, [...Array(8).keys()].map(x => 0.25 * Math.PI * x)),
],
+ 'lissajous 0': [
+ ['orbital'],
+ buildLevel(t => 8*Math.cos(t), t => 8*Math.sin(2*t), [...Array(8).keys()].map(x => 0.25 * Math.PI * x)),
+ ],
+
+
};
export function setupLevelSelectUi(root, sfx) {