文件名称:Spine-EaselJS:使用 EaselJS 渲染 Spine 动画
文件大小:1.3MB
文件格式:ZIP
更新时间:2024-06-29 13:36:40
JavaScript
Spine-EaselJS 使用 EaselJS 渲染 Spine 动画 Spine-EaselJS 脊柱动画示例 var stage = new createjs . Stage ( 'myCanvas' ) ; var dragon = new createjs . Spine ( "res/sceletons/dragon/dragon.atlas" , "res/sceletons/dragon/dragon.json" ) ; dragon . setTransform ( 300 , 220 , 0.5 , 0.5 ) ; dragon . onComplete = function ( ) { console . log ( dragon ) ; dragon . state . setAnimationByName ( 0 , 'flying' , true )
【文件预览】:
Spine-EaselJS-master
----package.json(186B)
----src()
--------main.coffee(2KB)
--------easelSpine.coffee(5KB)
----gulpfile.js(504B)
----public()
--------res()
--------js()
--------vendor()
--------index.html(882B)
----README.md(598B)