add intersection upgrade

This commit is contained in:
biglyderv 2025-03-10 05:14:15 -04:00
parent 5df5ea8d6c
commit 3f0b0b8ccc
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
2 changed files with 11 additions and 0 deletions

View file

@ -4,6 +4,10 @@ exec.doNothing = function() {
}
exec.intersectThings = function() {
}
exec.addCube = 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
@ -21,6 +25,12 @@ upgrades = [
'price': 1000,
'exec': 'doNothing',
'desc': 'Earlier-bought Sets are more powerful'
},
{
'name': 'Intersection',
'price': 1000,
'exec': 'intersectThings',
'desc': 'Sets become easier to click'
}
];