economy
This commit is contained in:
parent
659274b087
commit
a455575a64
4 changed files with 11 additions and 8 deletions
|
@ -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)
|
|
@ -142,7 +142,7 @@ function renderThing() {
|
|||
|
||||
requestAnimationFrame(renderThing);
|
||||
}
|
||||
let hud = document.querySelector('.hud');
|
||||
let hud = document.querySelector('.main-hud');
|
||||
|
||||
main();
|
||||
requestAnimationFrame(renderThing)
|
7
docs/js/upgrade.js
Normal file
7
docs/js/upgrade.js
Normal file
|
@ -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
|
||||
])
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue