From baac2b05132cb4af4ad6177cdbec6befb7985ec3 Mon Sep 17 00:00:00 2001 From: biglyderv Date: Thu, 6 Mar 2025 19:15:23 -0500 Subject: [PATCH] visual changesw --- docs/index.html | 2 +- docs/js/index.js | 9 ++++++--- docs/js/upgrade.js | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/index.html b/docs/index.html index 944a87e..60c32aa 100644 --- a/docs/index.html +++ b/docs/index.html @@ -39,7 +39,7 @@ gl_FragColor = vec4(b_position.xyz*0.1,1) * 0.2 + vec4(0.3,0.3,0.3,1) * 0.8; return; } - float dist = (log(distance(b_position.xy,vec2(0.0))) - size_thing + dist_thing) / log(2.0) * 0.1; + float dist = (log(distance(b_position.xy,vec2(0.0))) - size_thing) / log(2.0) * 0.1; gl_FragColor = vec4((mod(dist,0.1) - 0.1 + 0.1 * dist_thing) * 50.0 * vec3(1,1,1),1); // return redish-purple } diff --git a/docs/js/index.js b/docs/js/index.js index 9cd7050..c568207 100644 --- a/docs/js/index.js +++ b/docs/js/index.js @@ -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); diff --git a/docs/js/upgrade.js b/docs/js/upgrade.js index 8b81757..173d3f9 100644 --- a/docs/js/upgrade.js +++ b/docs/js/upgrade.js @@ -8,7 +8,7 @@ exec.addCube = function () { upgrades = [ { 'name': 'Set', - 'price': 100, + 'price': 30, 'exec': 'addCube', 'desc': 'Clicks and waiting generate more nil' }