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

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

71. 微信小游戏加载资源问题 [ 39%]

...ter.subMaps[curfileHead]; url = url.replace(curfileHead, newfileHead); } } switch (type) { case Laya.Loader.IMAGE: case "htmlimage": case "nativeimage": MiniLoader._transformImgUrl(url, type, thisLoader); break; case Laya.Loader.SOUND: thisLoader._loadSound(url); break; default: ...

来源: Laya_社区 发布时间: 20200103

72. LAYABOX游戏实时语音之APP版本 [ 37%]

...) + ".wav"; return audioPath; } public boolean onTouch(final String type){ switch(type){ case "d": mPTTStartTime = System.currentTimeMillis(); startRecordAudio(); return true; case "u": mAudioDownloaded = false; long endTime = System.currentTimeMillis(); if (endTime - mPTTStartTime < 1000){ Expor...

来源: Laya_社区 发布时间: 20170722

73. LayaAir开发笔记(1)五十音图连连看 [ 37%]

...0); Laya.stage.addChild(txt); txt.on(Laya.Event.CLICK, this, function(e) { switch (e.type) { case Laya.Event.CLICK: gameStart(); break; } }); //注册鼠标点击 加入一个显示得分的函数,分数由时间和出错次数决定,这个函数将会在游戏gameStart函数中调用,因为...

来源: Laya_社区 发布时间: 20160623

74. 角色控制器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

...position = new Laya.Vector3(0, 0, 0); } onKeyDown(evt: Laya.Event): void { switch (evt.keyCode) { case Laya.Keyboard.SPACE: //按键盘空格时 this.characterController.jump(this.jumpVector); // 跳跃 break; } } } 4.4 获得垂直速度 getVerticalVel() 垂直速度方法主要用于获取角色...

来源: Laya3.0_文档 发布时间: 20251010