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

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

11. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 58%]

...Right = 852 - 32 * 2 - 32 * parseInt(10 * Math.random()); //创建一个帧循环处理函数 // Laya.timer.frameLoop(1, this, this.onLoop); } //在地板上面添加物品 _proto.addItem = function(){ } //获取当前地板上面的所有物品 _proto.getItems = function(){ return ; } _proto.onLoop...

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

12. 使用3D摄像机 · LayaAir3.0文档 · LAYABOX [ 33%]

...ya.Vector3(); } } /** * 每帧更新时执行,尽量不要在这写大循环逻辑或者使用getComponent方法 * 此方法为虚方法,使用时重写覆盖即可 */ onUpdate(): void { if (!this.target || !this.camera) return; this.target.transform.position.vsub(this.curpos, this.delatpos);...

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