Created
February 21, 2016 15:44
-
-
Save Matthewacon/1c1f5764b188607f1ba8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const perlin = require('perlin-noise'); | |
const Chunk = require('prismarine-chunk')(require("../version")); | |
const Vec3 = require('vec3').Vec3; | |
const grassField = require('./grass_field.js').generation; | |
var chunksToGenerate = 16; | |
//const Enum = require('enum'); | |
//const dimensionTypes = new Enum(['Overworld' : 0, 'Nether' : -1, 'End' : 1]); | |
//Testing out perlin.generatePerlinNoise() | |
var noise = perlin.generatePerlinNoise(480, 480); | |
//function getGenerationTypes() { | |
//return dimensionTypes; | |
//} | |
function generation() { | |
function generateSimpleChunck() { | |
for (let x = 0; x > chunksToGenerate; x++) { | |
grassField.generateSimpleChunck(x,x,x); | |
} | |
} | |
} | |
//module.exports={generation:generation, getGenerationTypes:getGenerationTypes}; | |
module.exports=generation; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment