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

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

1. 输入设备-贪吃蛇(重力感应) [ 100%]

...ar Handler = Laya.Handler; var WebGL = Laya.WebGL; function Segment(width, height) { Segment.super(this); Segment.prototype.init = function() { this.graphics.drawRect(-height / 2, -height / 2, width + height, height, "#FF7F50"); } // 获取关节另一头位置 Segment.prototype.getPinPosition = fun...

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

2. 输入设备-贪吃蛇(重力感应) [ 99%]

...// 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; // 初始化蛇 this.initSnake(); // 监视加速器...

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

3. 引擎 TiledMap 居然不支持图块翻转 [ 95%]

... this._map.viewPortWidth || this.y < 0 || this.y > this._map.viewPortHeight) {                     this.hide();                 }                 else {                     this.show();                 }             }             else { ...

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

4. 性能测试-虫子(慎入) [ 93%]

...pBounds; var maggotTexture; (function() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#000000"; Stat.show(); wrapBounds = new Rectangle(-padding, -padding, Laya.stage.width + padding * 2, Laya.stage.height + padding * 2); Laya.loader.load(texturePath, Handler.create(this, ...

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

5. 在安卓手机上drawToTexture不能正确返回纹理对象,是HTMLCanvas [ 93%]

...Sprite.drawToTexture(dragCom,Laya.SpriteConst.TEXTURE,bounds.width, bounds.height, -bounds.x + view.x, -bounds.y + view.y); this._agent.graphics.drawTexture(this._agentTexture, (this._agent.width - bounds.width) * 0.5, (this._agent.height - bounds.height) * 0.5);   }   附件 : --> 2021-09-11 添...

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

6. 性能测试-虫子(慎入) [ 93%]

...// 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); wrapBounds = new Rectangle(-padding, -pa...

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

7. 性能测试-骨骼 [ 92%]

...unction init() { mSpacingX = Browser.width / colCount; mSpacingY = Browser.height / rowCount; Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); mTexturePath = "../../res/skeleton/" + fileName + "/" + fileName + ".png"; mAniPath = "../../res/skeleton/" + fileName + "/" + fileName + ".sk";...

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

8. 性能测试-骨骼 [ 91%]

...// 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); mSpacingX = Browser.width / colCount; mS...

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

9. UI-Tree [ 89%]

... {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24", "name": "selectBox", "skin": "ui/clip_selectBox.png", "right": "0", "clipY": "2"}}, {"type": "Clip", "props": {"y": "4", "x": "14", "name": "folder", "clipX": "1", "skin": "ui/clip_tree_folder.png", "clipY": "3...

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

10. UI-Tree [ 89%]

..., 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; Laya.stage.addChild(tree); } } const Box = Laya.Box, Clip = Laya.Clip, Label = Laya.Label; // 此类对应的json对象: // {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12",...

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