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

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

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 = []; //添加键盘按下事件,一直按着某按键则会不断...

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

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.loadAni(this...

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

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(this.m...

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

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(this....

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

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...

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

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(this.mA...

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

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.loadAni(...

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

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

...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...

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

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

...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...

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

10. 缓动-缓动函数演示 [ 97%]

..._SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createCharacter(); this.createEaseFunctionList(); this.createDurationCrontroller(); } private createCharacter(): void { this.character = new Sprite(); this.character.loadImage("res/cartoonCharacters/1.png"); this....

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