大约有 278 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0033 秒)
Laya_社区(104) Laya2.0_示例(102) Laya_示例(36) Laya2.0_文档(33) laya_api(1) Laya3.0_api(1) Laya2.0_api(1)
...E; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.loadFont(); } loadFont() { const BitmapFont = Laya.BitmapFont, Handler = Laya.Handler; Laya.loader.load([{ url: ['res/bitmapFont/test.fnt'], type: Lay...
来源: Laya_社区 发布时间: 20190225
...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { var list = new List(); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.h...
来源: Laya_社区 发布时间: 20180312
...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#3da8bb"; Stat.show(); this.createCanvases(); Laya.timer.frameLoop(1, this, this.animate); Laya.stage.on('mousedown', this, this.onMouseDown); Laya.stage.on('mousemove', this, this.onMouse...
来源: Laya2.0_示例 发布时间: 20251130
...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(ApePath, Handler.create(this, this.setup)); } setup() { this.createApe(); this.showDragRegion(); } createApe() { const Sprite = Laya.Sprite, Event =...
来源: Laya2.0_示例 发布时间: 20251130
...t(1136, 640, Laya.WebGL); //等比缩放 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1, this, onFrame); this.createTime = 0; function onFrame() { //如果创建对象时间为100帧间隔后 if (this.createTime >= 1...
来源: Laya2.0_文档 发布时间: 20210715
...e.alignH = Stage.ALIGN_CENTER; //等比缩放 Laya.stage.scaleMode = Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this,onSkinLoaded)); } /***加载资源完成***/ private function onSkin...
来源: Laya2.0_文档 发布时间: 20210714
...t(1136, 640, Laya.WebGL); //等比缩放 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1, this, this.onFrame); } onFrame(): void { //如果创建对象时间为100帧间隔后 if (this.createTime >= 100) { //每200帧...
来源: Laya2.0_文档 发布时间: 20210715
...rowser.onPC"); //Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.fullScreenEnabled = false; } else { console.log("...
来源: Laya_社区 发布时间: 20190319
...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); // create a background texture Laya.stage.loadImage("res/pixi/laserBG.jpg"); Laya.stage.frameLoop(1, this, this.animate); } animate() { const Sprite = Laya.Sprite, P...
来源: Laya2.0_示例 发布时间: 20251130
...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; if(Browser.onAndriod || Browser.onIOS){ Browser.window.conch && Browser.window.conch.showAssistantTouch(false); window.requestAnimationFrame(this.render); console.log("mobile device"); if(Brow...
来源: Laya_社区 发布时间: 20180525