voxel-land

generate landforms for voxel-engine

npm install voxel-land
3 downloads in the last week
5 downloads in the last month

voxel-land

A terrain generator combining several landform features. Grass, dirt, stone, trees.

Trees are provided by voxel-forest, and the overall grass surface by Perlin noise (similar to voxel-perlin-terrain:

screenshot

Beneath the grass is dirt, and then all chunks below are stone:

screenshot

screenshot

Usage

var createLand = require('voxel-land');
var land = createLand(game, opts);
land.enable();

or with voxel-plugins:

plugins.load('land', opts);

The voxel-engine game options should have generateChunks: false. voxel-land will listen on game.voxel for the missingChunk event and generate the new chunks. The listener can be unregistered with land.disable().

License

MIT

npm loves you