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

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

1. 2D物理-仿生机器人 [ 100%]

...50,570,1050,570,1050,200"; for (let i = 1; i 0) { legCollider1.points = p1.concat(p2).concat(p3).join(","); legCollider2.points = [0, 0].concat(B2Math.SubVV(p5, p4)).concat(B2Math.SubVV(p6, p4)).join(","); } else { legCollider1.points = p1.concat(p3).concat(p2).join(","); legCollider2.points = [0, 0...

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

2. 其他引擎的Demo-Example_21 [ 77%]

...ouseY); } onMouseUp() { isDown = false; canvasGraphics.drawPoly(0, 0, path.concat(), color); } animate() { liveGraphics.clear(); liveGraphics.drawPoly(0, 0, path, color); } } new PIXI_Example_21();module laya { import Graphics = Laya.Graphics; import Sprite = Laya.Sprite; import Browser = Laya.Brows...

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

3. Sprite-屏幕截图 [ 71%]

...E_FIXED_AUTO; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.btnArr.concat("res/apes/monkey3.png"),Laya.Handler.create(this,this.onLoaded)); } createButton(skin, name, cb, index) { var btn = new Laya.Button(skin,name); Laya.stage.addChild(btn); btn.on(Laya.Event.CLICK,this,cb); btn.size(147,5...

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

4. 混合模式-Lighter [ 59%]

...ion { var frames: Array = []; for (var i: number = 1; i = animation.frames.concat(); // 反转帧 clips = clips.reverse(); // 添加到已有帧末尾 animation.frames = animation.frames.concat(clips); animation.play(); return animation; } private preFixNumber(num:number, strLen:number):string { ret...

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

5. UI-RefreshList [ 41%]

...reateData(5, "顶部新增的标题"); //加到源数据前面 _arr = _arr.concat(this.refreshList.array); var index = 0 + 5; var line = 0; //所有的红点数据索引都增加 if (this.redHotStatus.length > 0) { for (let i = 0; i { //更新list数据源 this.refreshList.array = _arr; this.refresh...

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