spritesheet-animator
v1.0.0
Published
Simple way to work with spritesheet animations created on TP.
Downloads
10
Maintainers
Readme
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-animator
cd spritesheet-animator
npm install
beefy test/browserTest.js -o
Release History
- 1.0.0 First stable version
- 0.0.0 Experimental phase
License
MIT, see LICENSE.md for details.