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