From a455575a6437290e9052bd2dca02d3e0cc89b319 Mon Sep 17 00:00:00 2001 From: biglyderv Date: Wed, 5 Mar 2025 01:10:20 -0500 Subject: [PATCH] economy --- docs/index.html | 4 +++- docs/js/idle.js | 6 ------ docs/js/index.js | 2 +- docs/js/upgrade.js | 7 +++++++ 4 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 docs/js/upgrade.js diff --git a/docs/index.html b/docs/index.html index 9900427..eddc2bf 100644 --- a/docs/index.html +++ b/docs/index.html @@ -50,13 +50,15 @@ +
- hud +
hud
+
diff --git a/docs/js/idle.js b/docs/js/idle.js index bff4755..62f0da0 100644 --- a/docs/js/idle.js +++ b/docs/js/idle.js @@ -67,9 +67,3 @@ window.addEventListener('click', async (e) => { nGain = oldNGain; clicking = false; }) - -setInterval(function() { - cubePos.push([Math.random() * 1000 - 500, Math.random() * 1000 - 500, Math.random() * 30 - 200, - Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 - ]) -},100) \ No newline at end of file diff --git a/docs/js/index.js b/docs/js/index.js index 386871a..ed4070c 100644 --- a/docs/js/index.js +++ b/docs/js/index.js @@ -142,7 +142,7 @@ function renderThing() { requestAnimationFrame(renderThing); } -let hud = document.querySelector('.hud'); +let hud = document.querySelector('.main-hud'); main(); requestAnimationFrame(renderThing) \ No newline at end of file diff --git a/docs/js/upgrade.js b/docs/js/upgrade.js new file mode 100644 index 0000000..1be3b97 --- /dev/null +++ b/docs/js/upgrade.js @@ -0,0 +1,7 @@ +document.querySelector('.buy').addEventListener('click', () => { + if (nothingness < 10) return; + nothingness -= 10; + cubePos.push([Math.random() * 1000 - 500, Math.random() * 1000 - 500, Math.random() * 30 - 200, + Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 + ]) +}) \ No newline at end of file