0.0.4 • Published 12 years ago
voxel-items v0.0.4
voxel-items
an example/template node module for voxel.js.
places a items of voxels at some specific game position.
install it
npm install voxel-items
API
create the items
var items = require('voxel-items')()
wait until the image is loaded
items.addEventListener('load', function(){
// you code go here
})
create an item mesh
items.createMesh(x, y)
get the item which is at x, y in the spritesheet and create a 3d mesh with it
license
MIT