大约有 6 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0022 秒)
...; Laya.stage.addChild(ape); ape.loadImage(monkey1Path); // 方法2:使用drawTexture Laya.loader.load(monkey2Path, Laya.Handler.create(this, function () { let monkey2 = Laya.loader.getRes(monkey2Path); let ape2 = new Laya.Sprite(); Laya.stage.addChild(ape2); ape2.graphics.drawTexture(monkey2, 100,...
来源: Laya2.0_示例 发布时间: 20241118
...g) ? monkey1Res : monkey2Res; this.ape.graphics.clear(); this.ape.graphics.drawTexture(monkey, 0, 0); this.ape.size(monkey.width, monkey.height); } } new Sprite_SwitchTexture();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Texture; import Handler = Laya....
来源: Laya2.0_示例 发布时间: 20241118
...yTexture = Laya.loader.getRes("res/apes/monkey3.png"); this.aimSp.graphics.drawTexture(this.monkeyTexture,0,0,this.monkeyTexture.width,this.monkeyTexture.height); this.drawImage = new Image(); this.drawImage.size(Browser.clientWidth/2,Browser.clientHeight/2); Laya.stage.addChild(this.drawImage); thi...
来源: Laya2.0_示例 发布时间: 20241118
...ld(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.graphics.drawTexture(texture); this.ape.x = (Laya.stage.width - texture.width) / 2; this.ape.y = (Laya.stage.height - texture.height) / 2; } applayFilter() { // 创建一个模糊滤镜 const BlurFilter = Laya.BlurFilter; // let blurF...
来源: Laya2.0_示例 发布时间: 20241118
...ld(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.graphics.drawTexture(texture); this.ape.x = (Laya.stage.width - texture.width) / 2; this.ape.y = (Laya.stage.height - texture.height) / 2; } applayFilter() { // 创建一个发光滤镜 const GlowFilter = Laya.GlowFilter; let glowFilt...
来源: Laya2.0_示例 发布时间: 20241118
...tage.addChild(ape); apeTexture = Laya.loader.getRes(apePath); ape.graphics.drawTexture(apeTexture); return ape; } } new Filters_Color();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import ColorFilter = Laya.ColorFilter; import Texture = Laya.Texture; import Browser = Laya.Br...
来源: Laya2.0_示例 发布时间: 20241118