• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 31 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0032 秒)

1. 骨骼动画-适配版Spine [ 100%]

... var Stage = Laya.Stage; var Event = Laya.Event; var Stat = Laya.Stat; var SpineTemplet = Laya.SpineTemplet; class SpineBinary { constructor() { this.aniPath = "res/bone/spineboy-pma.skel"; this.index = -1; Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; ...

来源: Laya2.0_示例 发布时间: 20241124

2. 骨骼动画-Spine事件 [ 96%]

...ew Sprite(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes6/alien.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { trace("error"); } function par...

来源: Laya_示例 发布时间: 20241124

3. 骨骼动画-Spine事件 [ 96%]

...mStartX = 400, mStartY = 500, mCurrIndex = 0, mLabelSprite; class Skeleton_SpineEvent { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clien...

来源: Laya2.0_示例 发布时间: 20241124

4. 骨骼动画-多纹理 [ 94%]

...Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { trace("error"); } function pa...

来源: Laya_示例 发布时间: 20241124

5. 骨骼动画-藤蔓 [ 94%]

...Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes5/vine.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { console.log("error"); } functio...

来源: Laya_示例 发布时间: 20241124

6. 骨骼动画-橡胶人 [ 94%]

...Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes4/stretchyman.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { console.log("error"); } ...

来源: Laya_示例 发布时间: 20241124

7. 骨骼动画-多纹理 [ 93%]

... { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath); } onError() { trace("error"); } parseCompl...

来源: Laya2.0_示例 发布时间: 20241124

8. 骨骼动画-藤蔓 [ 93%]

...y, mArmature, mStartX = 200, mStartY = 500, mCurrIndex = 0; class Skeleton_SpineVine { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.client...

来源: Laya2.0_示例 发布时间: 20241124

9. 骨骼动画-橡胶人 [ 93%]

...y, mArmature, mStartX = 200, mStartY = 500, mCurrIndex = 0; class Skeleton_SpineStretchyman { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser...

来源: Laya2.0_示例 发布时间: 20241124

10. 骨骼动画-换装 [ 92%]

...Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes2/goblins.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { trace("error"); } function p...

来源: Laya_示例 发布时间: 20241124