voxel-walk

0.0.5 • Public • Published

npm install voxel-walk --save Spreading the good word. Using --save updates your package.json automatically.

A simple walk cycle animation for minecraft-skin characters (used in Voxel.js), using code ripped directly out of Daniel Hede's "Minecraft Items", the same project that birthed the minecraft-skin module.

Run this example.

var walk = require('voxel-walk')

In your render loop you pass it a minecraft-skin object for each tick (npm minecraft-skin). For example, if you hav a minecraft-skin named duck:

var render = function () {
    walk.render(duck)
}

When called, the walk function automatically detects the velocity of the skin, and eases the stride to an appropriate magnitude.

If you want to run the demo, just run:

//If you don't have browserify installed:
npm install browserify -g

browserify demo.js -o bundle.js

//If you don't have http-server installed:
npm install http-server -g

http-server

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    1
  • 0.0.4
    1
  • 0.0.3
    2
  • 0.0.2
    2
  • 0.0.1
    3

Package Sidebar

Install

npm i voxel-walk

Weekly Downloads

9

Version

0.0.5

License

none

Last publish

Collaborators

  • danfinlay