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

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

1. 鼠标交互-键盘交互 [ 100%]

...showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.listenKeyboard(); this.createLogger(); Laya.timer.frameLoop(1, this, this.keyboardInspector); } private listenKeyboard(): void { this.keyDownList = []; //添加键盘按下事件,一直按着某按键则会不断...

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

2. 骨骼动画-换装 [ 99%]

...age.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes2/goblins.sk"; this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this.parseComplete); this.mFactory.on(Event.ERROR, this, this.onError); this.mFactory.loadAn...

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

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

...(); this.mLabelSprite = new Sprite(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes6/alien.sk"; this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this.parseComplete); this.mFactory.on(Event.ERROR, this, this.onError); this.mFactory.loadAni(...

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

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

...age.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes1/dragon.sk"; this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this.parseComplete); this.mFactory.on(Event.ERROR, this, this.onError); this.mFactory.loadAni...

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

5. 鼠标交互-修正交互区域 [ 98%]

...showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.buildWorld(); this.createLogger(); } private buildWorld(): void { this.createCoralRect(); this.createDeepSkyblueRect(); this.createDarkOrchidRect(); // 设置舞台 Laya.stage.name = "暗灰色舞台" Laya.stage.o...

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

6. 骨骼动画-藤蔓 [ 98%]

...age.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes5/vine.sk"; this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this.parseComplete); this.mFactory.on(Event.ERROR, this, this.onError); this.mFactory.loadAni(t...

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

7. 骨骼动画-橡胶人 [ 98%]

...age.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes4/stretchyman.sk"; this.mFactory = new Templet(); this.mFactory.on(Event.COMPLETE, this, this.parseComplete); this.mFactory.on(Event.ERROR, this, this.onError); this.mFactory.lo...

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

8. 网络和格式-POST [ 97%]

...Color = "#232628"; this.connect(); this.showLogger(); } private connect(): void { this.hr = new HttpRequest(); this.hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Event.ERROR, this, this.onHttpRequestError); thi...

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

9. 网络和格式-GET [ 97%]

...Color = "#232628"; this.connect(); this.showLogger(); } private connect(): void { this.hr = new HttpRequest(); this.hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Event.ERROR, this, this.onHttpRequestError); thi...

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

10. 缓动-时间线 [ 97%]

...E_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup():void { this.createApe(); this.createTimerLine(); Laya.stage.on( Event.KEY_DOWN, this, this.keyDown); } private createApe():void { this.target = new Sprite(); this.target.loadImage("../../res/apes/monkey2.png"); Laya.stage.add...

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