economy
This commit is contained in:
parent
659274b087
commit
a455575a64
4 changed files with 11 additions and 8 deletions
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