0.2.0 • Published 11 years ago

voxel-throw v0.2.0

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

voxel-throw

Pick up and throw voxels in voxel.js.

View this example

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.

0.2.0

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago