visual changesw

This commit is contained in:
biglyderv 2025-03-06 19:15:23 -05:00
parent a95e485cb7
commit baac2b0513
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
3 changed files with 8 additions and 5 deletions

View file

@ -116,7 +116,10 @@ function renderThing() {
hud.textContent = `${Math.floor(nothingness * 100) / 100} nil; ${Math.floor((nGain + getBonus) * 60 * 100) / 100} nil/sec`
gl.uniform1f(sizeBuffer, -Math.log(nothingness));
gl.uniform1f(distBuffer, 0.1 + 3 * nGain / (nGain + nothingness));
let am = (nGain + getBonus) / (nGain + getBonus + nothingness);
am = am ** (0.3);
gl.uniform1f(distBuffer, 0.1 + 1.2 * am);
gl.uniform1i(fgBuffer, false);
var primitiveType = gl.TRIANGLES;
@ -124,8 +127,8 @@ function renderThing() {
var count = 6;
gl.drawArrays(primitiveType, offset, count);
let sizes = (nGain + 1) / (nothingness + 1) * 1000000 / (cubePos.length+30);
sizes = Math.pow(sizes,0.3);
let sizes = (nGain + 1) / (nothingness + 1) * 1000000 / (cubePos.length + 30);
sizes = Math.pow(sizes, 0.3);
if (sizes > 10) sizes = 10;
positions = MDN.createCubeData(sizes, sizes, sizes);

View file

@ -8,7 +8,7 @@ exec.addCube = function () {
upgrades = [
{
'name': 'Set',
'price': 100,
'price': 30,
'exec': 'addCube',
'desc': 'Clicks and waiting generate more nil'
}