maxogden/voxel-highlight — pull request #12 by theoxylo (2013-03-19 23:09:26+00:00)
Title: 0.0.9 - added voxel multi-select, configurable animation

The player can now select a block of voxels by holding the 'select' key and highlighting from some start voxel (or adjacent) to an end voxel (or adjacent).

The select start and end position arrays are emitted with 2 new events:
1. 'highlight-select' (whenever the ending voxel changes)
2. 'highlight-deselect' (when the select key is released)

The voxel multi-block selection is not used for anything yet, but I am thinking of copy-paste functionality or cookie-cutter building perhaps. More demo stuff could be added to test.js, which uses voxel-hello-world (or soon will) and adds the 'K' key binding for the 'select' function.

Also, the simple animation of highlight position changes can now be specified by passing in an easing function. The default function is very simple. I think I may prefer not using the animation at all.