0.0.5 • Published 11 years ago

voxel-walk v0.0.5

Weekly downloads
23
License
-
Repository
-
Last release
11 years ago

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)