大约有 430 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0042 秒)
Laya_社区(197) Laya2.0_示例(103) Laya_示例(81) Laya2.0_文档(45) laya_api(1) Laya3.0_api(1) Laya2.0_api(1) Laya3.0_文档(1)
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Event = Laya.Event; this.createApe(); this.createTimerLine(); Laya.stage.on(Event.KEY_DOWN, this, this.keyDown); } ...
来源: Laya2.0_示例 发布时间: 20241124
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { var vGap = 100; button1 = createButton("点我3秒之后 alpha - 0.5"); button1.x = (Laya.stage.width - button1.width) / 2; bu...
来源: Laya_示例 发布时间: 20241124
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Event = Laya.Event; this.createSprite(); Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.M...
来源: Laya2.0_示例 发布时间: 20241124
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.buildWorld(); this.createLogger(); } buildWorld() { const Event = Laya.Event; this.createCoralRect(); this.createDee...
来源: Laya2.0_示例 发布时间: 20241124
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load([buttonSkin, clipSkin, bgSkin], Handler.create(this, this.onSkinLoaded)); } onSkinLoaded() { this.showBg(); this.createTimerAnimation(); this.s...
来源: Laya2.0_示例 发布时间: 20241124
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Event = Laya.Event; let vGap = 100; this.button1 = this.createButton("点我3秒之后 alpha - 0.5"); this.button1....
来源: Laya2.0_示例 发布时间: 20241124
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe =...
来源: Laya2.0_文档 发布时间: 20210714
手机自适应问题 Laya.stage.scaleMode = Stage.SCALE_NOBORDER; Laya.stage.scaleMode = Stage.SCREEN_HORIZONTAL; 这两句代码是我准备写的全屏代码,效果如 图1。问题是我需要将横屏尺寸才是正合适的。 我在社区看到有...
来源: Laya_社区 发布时间: 20161213
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.init(); } init() { const Sprite = Laya.Sprite, Animation = Laya.Animation, Text = Laya.Text, Event = Laya.Event; // 创建背景 this.spBg = S...
来源: Laya2.0_示例 发布时间: 20241124
...aya.init(640,960,Laya.WebGL); //屏幕缩放模式 stage 舞台 Laya.stage.scaleMode= Laya.Stage.SCALE_NOSCALE ; //水平对齐方式 Laya.stage.alignH = Laya.Stage.ALIGN_CENTER ; //垂直对齐方式 Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE ; //设置适配模式 Laya.stage.scaleMode = Laya.Stag...
来源: Laya_社区 发布时间: 20170228