spritesheet-animator:使用Spritesheet动画的简单模块

时间:2021-05-23 06:52:33
【文件属性】:
文件名称:spritesheet-animator:使用Spritesheet动画的简单模块
文件大小:1.04MB
文件格式:ZIP
更新时间:2021-05-23 06:52:33
JavaScript 精灵动画 安装 $ npm install spritesheet-animator 用法 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); 使用前进行测试? git clone https: //github.com/Jam3/spri
【文件预览】:
spritesheet-animator-master
----.gitignore(73B)
----package.json(1006B)
----LICENSE.md(1KB)
----index.js(6KB)
----test.js(34B)
----README.md(981B)
----.npmignore(65B)
----test()
--------browserTest.js(662B)
--------index.html(268B)
--------particle_hover.json(15KB)
--------particle_hover.png(1.03MB)

网友评论