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

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

31. 请大家帮助优化一下这个抛物线的代码 [ 76%]

....loader.load("res/atlas/war.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } private onLoaded():void{ this.ball = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stage.on(Laya.Event.CLICK,this,this.onC...

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

32. 加载TiledMap 不显示 [ 76%]

...stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded), null, new Point(1600, 800));     }      private onStageClick(): void {         var p: Point = new Point(0, 0);         this.layer.getTilePositionByScreenPos(Laya.stage.mouseX, Laya.stage....

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

33. 高级应用-Laya3D与网页混合 [ 76%]

...r3(-15, 0, 0), true, false); //3.清除照相机颜色 camera.clearColor = null; var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); var layaMonkey = scene.addChild(Laya.Spri...

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

34. laya.d3.math.Quaternion [ 76%]

...0, y:Number = 0, z:Number = 0, w:Number = 1, nativeElements:Float32Array = null) 创建一个 Quaternion 实例。 Quaternion  add(left:Quaternion, right:Quaternion, out:Quaternion):void[static] 计算两个四元数的和 Quaternion  clone():* 克隆。 Quaternion  cloneTo(destObject:*):void ...

来源: Laya2.0_api 发布时间: 20190513

35. 【简单跑酷--JS版】---Lv.3 添加地板 [ 76%]

...Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 首先同样我们到runGame目录新建一个Floor.js 开始编写代码 这里 我们想一下地板有哪些功能? 1、自身从右到左运动 超出左边边界 就移除存入对象池 2、地板上可...

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

36. laya.d3.math.native.ConchVector3_API3.0 [ 75%]

...e z: number = 0 Z轴坐标。 Default value nativeElements: Float32Array = null Returns ConchVector3 Properties elements elements: Float32Array Defined in laya/d3/math/Native/ConchVector3.ts:35 [只读]向量元素集合。 Static ForwardLH ForwardLH: ConchVector3 = new ConchVector3(0, 0, 1) Defined...

来源: Laya3.0_api 发布时间: 20231102

37. 鼠标交互-滑动 [ 75%]

...ild(graph); } /**按下事件处理*/ private function onMouseDown(e:Event=null):void { //添加鼠标移到侦听 Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); buttonPosition = button.x; Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } /**移...

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

38. laya.d3.math.Viewport [ 75%]

...trix4x4 — 视图矩阵。  world:Matrix4x4 — 世界矩阵,可设置为null。  out:Vector3 — 输出向量。 Mon May 13 2019, 02:40 PM +08:00

来源: Laya2.0_api 发布时间: 20190513

39. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 75%]

... a.mouseEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void {     console.log("touch a"); } 因为需要将mouseThrough=true才可以,蛋疼的api描叙你能相信是这个熟悉么? “mouseThrough : Boolean = false,指定当mouseEnabled=...

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

40. 鼠标交互-滑动 [ 75%]

...ild(graph); } /**按下事件处理*/ private function onMouseDown(e:Event=null):void { //添加鼠标移到侦听 Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); buttonPosition = button.x; Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } /**移...

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