spritesheet-animator

1.0.0 • Public • Published

spritesheet-animator

stable

NPM

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.

Package Sidebar

Install

npm i spritesheet-animator

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • miguelmoraleda