nothing-simulator/docs/js/upgrade.js
2025-03-05 01:10:20 -05:00

7 lines
No EOL
303 B
JavaScript

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
])
})