0.0.4 • Published 12 years ago

voxel-items v0.0.4

Weekly downloads
14
License
-
Repository
-
Last release
12 years ago

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

0.0.4

12 years ago

0.0.3

12 years ago

0.0.1

12 years ago