大约有 1,608 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0057 秒)
Laya_社区(977) Laya2.0_文档(192) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(29)
...= new Sprite(); target.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(target); target.pivot(55, 72); target.pos(100,100); } function createTimerLine() { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX:0.5, scaleY:0.5},2000,null,0) .addLabel("turnDown",0).to(target,{x:4...
来源: Laya_示例 发布时间: 20241118
...反应? 代码如下: var dialog_mc:Sprite = new Sprite(); Laya.stage.addChild(dialog_mc); var w:int = 110; var h:int = 40; var btn:Sprite = new Sprite(); btn.size(w, h); btn.graphics.drawRect((stageWd - w) * 0.5, (stageHt - h) * 0.5-50, w, h, "#FF7F50"); btn.graphics.fillText("确 定", (stageW...
来源: Laya_社区 发布时间: 20170120
...装(相当耗费内存) mArmature = mFactory.buildArmature(1); Laya.stage.addChild(mArmature); mArmature.pos(mStartX, mStartY); // mArmature.scale(0.5, 0.5); mArmature.on(Event.STOPPED, this, this.completeHandler); this.play(); this.changeSkin(); Laya.timer.loop(1000, this, this.changeSkin); } chang...
来源: Laya2.0_示例 发布时间: 20241118
...2(distY, distX) + Math.PI) * 180 / Math.PI; lasers.push(laser); Laya.stage.addChild(laser); frequency *= 0.9; } for (var i = 0; i 60 * 0.3) { laser.alpha *= 0.9; laser.scaleY = laser.alpha; if (laser.alpha = []; private tick: number = 0; private frequency: number = 80; private type: number = 0; cons...
来源: Laya_示例 发布时间: 20241118
... new Laya.Box() bgWrapper.zOrder = 0 let bg = new Laya.Sprite(); bgWrapper.addChild(bg) Laya.stage.addChild(bgWrapper) bgWrapper.x = 375 bgWrapper.y = 667 bg.loadImage("../res/image/interface/intro_bg.png",0,0,1500,1500); bg.pivot(750,750) bg.alpha = 1 bg.rotation = 20 2018-05-19 1 0 分享 微博 Q...
来源: Laya_社区 发布时间: 20180519
...pe = new Sprite(); ape.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(ape); return ape; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import ColorFilter = Laya.ColorFilter; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Lay...
来源: Laya_示例 发布时间: 20241118
...ion onLoaded():void { img=new Image(); img.skin="res/logo.png"; Laya.stage.addChild(img); Laya.timer.once(500,this,onClick); //Laya.stage.on(Event.CLICK,this,onClick); } private function onClick():void { var htmlCanvas:HTMLCanvas=img.drawToCanvas(100,100,0,0) as HTMLCanvas; var texture:Texture=new T...
来源: Laya_社区 发布时间: 20170704
...rite(); ccc.graphics.drawRect(0,0,50,50,'#123000'); this.addChild(ccc); //ccc.x = -30 } Laya.class(layaSlot,null,Sprite); 代码是这样的 我的想法是 在viewport之外的 应该是不会显示的 在viwport之内显示的应该是会显示的 但是实际上...
来源: Laya_社区 发布时间: 20170323
...eateApe() { const Sprite = Laya.Sprite; let ape = new Sprite(); Laya.stage.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 = Lay...
来源: Laya2.0_示例 发布时间: 20241118
...); function init() { // var gameManager = new GameManager(); // Laya.stage.addChild(gameManager); Laya.loader.load("res/parts/lizi2.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } var i = 0; function onAssetsLoaded(settings) { var sp = new Particle2D(settings); sp.play(); sp.emitt...
来源: Laya_社区 发布时间: 20170103