大约有 91 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0024 秒)
...ialias = true; Laya.Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable({ gravity: 0 }); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.Laya.stage.s...
来源: Laya2.0_示例 发布时间: 20241117
...n); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } createTimerAnimation() { const Clip = Laya.Clip; this.counter = new Clip(clipSkin, 10, 1); Laya.stage.addChild(this.counter); this.counter.autoPlay = true; this.counter.int...
来源: Laya2.0_示例 发布时间: 20241117
...bone/spineboy-pma.skel"; this.index = -1; Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } startFun() { this.templet = new SpineTemplet(Laya.SpineVersion.v3_8); this.templet.loadAni(this.aniPa...
来源: Laya2.0_示例 发布时间: 20241117
...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = L...
来源: Laya2.0_示例 发布时间: 20241117
...言、LayaAirIDE让项目开发更高效。let DIALOG_WIDTH = 220, DIALOG_HEIGHT = 275, CLOSE_BTN_WIDTH = 43, CLOSE_BTN_PADDING = 5, assets = ["res/ui/dialog (1).png", "res/ui/close.png"]; class UI_Dialog { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = ...
来源: Laya2.0_示例 发布时间: 20241117
...teRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOSCALE();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOSCALE { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stag...
来源: Laya2.0_示例 发布时间: 20241117
...console); console.y = picH + 10; console.width = Laya.stage.width; console.height = Laya.stage.height - console.y; console.color = "#FFFFFF"; console.fontSize = 50; console.align = "center"; console.valign = 'middle'; console.leading = 10; } startShake() { const Shake = Laya.Shake; Shake.instance.st...
来源: Laya2.0_示例 发布时间: 20241117
...teRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOBORDER();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOBORDER { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.st...
来源: Laya2.0_示例 发布时间: 20241117
...rIDE让项目开发更高效。let COLUMNS = 2, BUTTON_WIDTH = 147, BUTTON_HEIGHT = 165 / 3, HORIZONTAL_SPACING = 200, VERTICAL_SPACING = 100, xOffset, yOffset, skins; class UI_Button { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = ...
来源: Laya2.0_示例 发布时间: 20241117
...// 不支持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(); this.setup(); } setup() { let vGap = 100...
来源: Laya2.0_示例 发布时间: 20241117