voxel-walk

A simple walk animation for minecraft-skin characters.

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.

Doesn't include an off switch yet. Also seems to ruin textures at the moment.

var walk = require('voxel-walk')

In your render loop you pass it a time value and a minecraft-skin object (as can be found in the minecraft-skin module available on npm).

var time = (Date.now() - startTime)/1000;
    walk.render(duck, time)