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

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

1. 其他引擎的Demo-Example_23 [ 100%]

...ha *= 0.9; laser.scaleY = laser.alpha; if (laser.alpha = []; private tick: number = 0; private frequency: number = 80; private type: number = 0; constructor() { Laya.init(this.viewWidth, this.viewHeight, WebGL); Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.scaleMode = Stage.SCALE_NOBO...

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

2. 性能测试-骨骼 [ 88%]

...(tTexture, arraybuffer, 10); } private parseComplete(): void { for (var i: number = 0; i = tAnimNum) { this.mActionIndex = 0; } for (var i: number = 0, n: number = this.mAnimationArray.length; i = tAnimNum) { mActionIndex = 0; } for (var i:int = 0, n:int = mAnimationArray.length; i < n; i++) { mAnim...

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

3. DOM元素-表单输入 [ 85%]

...new DOM_Form();class DOM_Form{ private form:Laya.Sprite; private rowHeight:number = 30; private rowSpacing:number = 10; constructor() { Laya.init(600,400); Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya....

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

4. UI-RefreshList [ 76%]

...用于处理单元格上的点击事件等 */ onListMouse(e: Event, index: number): void { console.log(e.target.name); if (e.type == Event.MOUSE_DOWN) { this.mouseDown = true; //如果单元格已经展开,则先恢复 if (this.itemIsOpen) { this.itemIsOpen = false; this.itemOpenId = -1; Tween.to(...

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

5. UI-Tree [ 71%]

...te(): void { // 组装tree的数据 var treeData: string = ""; for (var i: number = 0; i "; for (var j: number = 0; j "; } treeData += ""; } treeData += ""; // 解析tree的数据 var xml:any = Utils.parseXMLFromString(treeData); var tree: Tree = new Tree(); tree.scrollBarSkin = "res/ui/vscroll.png"...

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

6. 2D物理-碰撞过滤器 [ 65%]

...则会穿透house private var curTarget: Sprite; private var preMovementX: Number = 0; private var preMovementY: Number = 0; public function Physics_Physics_CollisionFiltering() { Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable(); PhysicsDebugDraw.enable(); L...

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

7. IDE-显示IDE创建的界面 [ 64%]

...st赋值,先获得一个数据源数组 var arr: Array = []; for (var i: number = 0; i < 100; i++) { arr.push({ label: "item " + i, clip: i % 9 }); } //给list赋值更改list的显示 this.list.array = arr; //还可以自定义list渲染方式,可以打开下面注释看一下效果 //list.rend...

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

8. UI-Input [ 59%]

...omplete));//加载资源。 } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: TextInput = this.createInput(this.skins[i]); input.prompt = 'Type:'; input.x = (Laya.stage.width - input.width) / 2; input.y = i * this.SPACING + this.Y_OFFSET; } } private...

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

9. 2D物理-碰撞事件与传感器 [ 53%]

...gl.WebGL; public class Physics_Physics_CollisionEvent { private var count: Number = 7; private var sensorCollider: CircleCollider; private var bodys: Array = []; private var touching: Array = []; public function Physics_CollisionEvent() { Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); ...

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

10. 2D物理-仿生机器人 [ 52%]

...bVV(p6, p4)).concat(B2Math.SubVV(p5, p4)).join(","); } const dampingRatio: number = 0.5; const frequencyHz: number = 10.0; let distanceJoint1: DistanceJoint = new DistanceJoint(); distanceJoint1.otherBody = legBody2; distanceJoint1.selfAnchor = p2; distanceJoint1.otherAnchor = B2Math.SubVV(p5, p4); ...

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