spawn in void less

This commit is contained in:
biglyderv 2024-09-13 18:04:29 -04:00
parent 8806aa1f41
commit 1afdddc882
No known key found for this signature in database
GPG key ID: 33AC87E9ACE66954

View file

@ -142,18 +142,18 @@ Game.prototype.map = function () {
base[i] = Math.max(base[i], 0);
base[i] = Math.min(base[i], 1);
base[i] = Math.pow(base[i], 0.3);
base[i] = base[i] * 0.5 + 0.5;
base[i] = base[i] * 0.3 + 0.7;
//base[i] = (Math.random() > 0.5) ? 0 : 1;
}
this.fac = 1;
let x2 = 0, y2 = 0;
let x2 = 0, y2 = 0, mask = 0;
for (let i = 0; i < 1000000; i++) {
x2 = Math.random() * 1e7;
y2 = Math.random() * 1e7;
let mask = toPoint(x2, y2, base, this.fac, exp, inSize);
x2 = Math.random() * (1.000012 ** i) * 1e2;
y2 = Math.random() * (1.000012 ** i) * 1e2;
mask = toPoint(x2, y2, base, this.fac, exp, inSize);
if (mask == 1) break;
}
this.camera = [x2, y2];