init commit

This commit is contained in:
glazenbol
2026-03-18 05:49:16 +01:00
commit d89da60e2d
11 changed files with 322 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import { GUI } from "lil-gui";
import io from "socket.io-client";
const socket = io("http://localhost:3000");
const gui = new GUI();
const params = {
fps: 60,
zoom: 0.01,
backgroundTicks: 60,
textSpread: 0,
maxSpawns: 1,
textAlpha: 0.0,
textTicks: 1
};
gui.add(params, "fps", 0.1, 60);
gui.add(params, "zoom", 0.001, 0.5);
gui.add(params, "backgroundTicks", 1, 240).step(1);
const textFolder = gui.addFolder("Text");
textFolder.add(params, "textSpread", 0, 200);
textFolder.add(params, "maxSpawns", 1, 20).step(1);
textFolder.add(params, "textAlpha", 0, 255).step(1);
textFolder.add(params, "textTicks", 1, 240).step(1);
gui.onChange((e) => {
socket.emit("paramUpdate", { key: e.property, value: e.value });
});