0.2.0 • Published 11 years ago
voxel-throw v0.2.0
voxel-throw
Pick up and throw voxels in voxel.js.
example
// create a throwing thing and give it a copy of the game
var pickupOrThrow = require('voxel-throw')(game);
// on mouse down either pick up or throw a voxel
window.addEventListener('mouseup', function() {
pickupOrThrow(/* velocity, {x: angle, y: angle} */);
}, false);
install
With npm do:
npm install voxel-throw
Use browserify to require('voxel-throw')
.
release history
- 0.1.0 - initial release
license
Copyright (c) 2013 Kyle Robinson Young Licensed under the MIT license.