spawn in void less
This commit is contained in:
parent
8806aa1f41
commit
1afdddc882
1 changed files with 5 additions and 5 deletions
10
js/index.js
10
js/index.js
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue