大约有 159 项符合查询结果, 库内数据总量为 30,949 项。 (搜索耗时: 0.0038 秒)
...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
...// 不支持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
... this._map.viewPortWidth || this.y < 0 || this.y > this._map.viewPortHeight) { this.hide(); } else { this.show(); } } else { ...
来源: Laya_社区 发布时间: 20220627
...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
...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
...// 不支持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
...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
...// 不支持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
... {"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
..., 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