add number formating
This commit is contained in:
parent
3f0b0b8ccc
commit
a31a41bb94
4 changed files with 27 additions and 2 deletions
|
@ -113,7 +113,7 @@ function renderThing() {
|
|||
|
||||
gl.uniformMatrix4fv(matBuffer, false, new Float32Array(MDN.perspectiveMatrix(Math.PI * 100 / 180, ratio, 0.01, 1000)));
|
||||
|
||||
hud.textContent = `${Math.floor(nothingness * 100) / 100} nil; ${Math.floor((nGain + getBonus) * 60 * 100) / 100} nil/sec`
|
||||
hud.textContent = `${numify(nothingness)} nil; ${numify((nGain + getBonus) * 60)} nil/sec`
|
||||
|
||||
gl.uniform1f(sizeBuffer, -Math.log(nothingness));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue