spritesheet-animator
Install
$ npm install spritesheet-animator
Usage
var dataFile = JSON.parse(fs.readFileSync(__dirname + '/particle_hover.json', 'utf8'));
this.spriteAnimation = new SpritesheetAnimator();
this.spriteAnimation.init({
sprite: dataFile, //tp json file
parentEl: animationContainer, //container
folder: 'test/'
});
this.spriteAnimation.play(0, true);
Testing before using?
git clone https://github.com/Jam3/spritesheet-animatorcd spritesheet-animatornpm installbeefy test/browserTestjs -o
Release History
- 1.0.0 First stable version
- 0.0.0 Experimental phase
License
MIT, see LICENSE.md for details.