大约有 6 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0025 秒)
...Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Stat.enable(); Laya.stage.loadImage("res/cartoon2/background.jpg", 0, 0, 1280, 900); this.createCharacters(); text = new Text(); text.zOrder = 10000; text.fontSize = 60; text.color = "#ff0000" Laya.stage.addChild(text); Laya.timer.frameLoop(1, this, t...
来源: Laya2.0_示例 发布时间: 20261113
...gColor = "#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, Point = Laya.Point; let laser; if (tick > frequency) { tick = 0; // iterate through the dudes and updat...
来源: Laya2.0_示例 发布时间: 20261113
...s, this.setup)); } private setup():void { var bg:Sprite = new Sprite(); bg.loadImage("res/bg2.png"); Laya.stage.addChild(bg); this.bg2 = new Sprite(); this.bg2.loadImage("res/bg2.png"); Laya.stage.addChild(this.bg2); this.bg2.scale(3, 3); //创建mask this.maskSp = new Sprite(); this.maskSp.loadImag...
来源: Laya2.0_示例 发布时间: 20261113
...prite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(ApePath); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(ApePath); this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.x = Laya.stage.width / 2; this.ape.y = Laya.stage.height / 2; this....
来源: Laya2.0_示例 发布时间: 20261113
...teApe)); } private createApe(): void { var ape: Sprite = new Sprite(); ape.loadImage(this.apePath); ape.x = (Laya.stage.width - ape.width) / 2; ape.y = (Laya.stage.height - ape.height) / 2; Laya.stage.addChild(ape); this.applayFilter(ape); } private applayFilter(ape: Sprite): void { var blurFilter: ...
来源: Laya2.0_示例 发布时间: 20261113
...prite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(apePath); let texture = Laya.loader.getRes(apePath); this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.ape.scale(0.8, 0.8); Laya.stage.addChild(th...
来源: Laya2.0_示例 发布时间: 20261113