Package Exports
- voxel-async-simulation
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (voxel-async-simulation) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
VoxelSimulation
Things got much better... it may even be useful now. There are two things this package provides:
- A simple server based loading abstraction
- chunk referencing when generating (which will soon manifest in a biome abstraction)
This means you provide a generator function factory on the server:
function(chunkX, chunkY, chunkZ){
//chunk specific work here
return function(x, y, z){
//voxel specific work here
}
}Usage
This is a reimagining of voxel-hello-world that loads materials based on what it finds in the texture pack and has a different terrain loader (which runs on the server). Check out the source of the example-client until there are more docs. Make sure to either change the client or to name your texturePack 'PhotoRealistic' so you can use the client with the textures you are about to download.
Speaking of... go Download a Minecraft texture pack then unpack it and put your textures in a folder at the root called texture-packs. If you want you can also drop a player.png minecraft skin in the root directory so your avatar is textured.
Now let's build the app(with browserify):
browserify example-client.js -o app.jsthen run the example server:
node example-server.jsand access the html root
Biomes
Using voxel-biomes you can support biomes as a series of different generators. See an example of this in the source. To execute this inside this project, you need to manually npm install voxel-biomes;
Testing
Eventually it'll be:
mochaEnjoy,
-Abbey Hawk Sparrow