Removed some unneeded require()'s

This commit is contained in:
Bram van der Veen 2016-06-30 12:04:20 +02:00
parent 10b9bec576
commit cf369c166a

View file

@ -1,8 +1,6 @@
const fs = require('fs');
const Planet = require('./planet');
const PRNG = require('./prng');
const Star = require('./star');
const MersenneTwister = require('./twister');
const utils = require('./utils');
const data = require('./data.json');
@ -41,7 +39,7 @@ function generate(seed, amount) {
position = {
x: Math.cos(theta) * r * 100,
y: Math.sin(theta) * r * 100,
z: pseudoRandom.gaussrandom(thickness * 0.5)
z: pseudoRandom.gaussrandom(thickness * 0.5) * 100
};
stars.push(new Star(new_name,pseudoRandom.range(1, 100000),position));
}