大约有 1,141 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)
Laya_社区(992) Laya3.0_api(66) Laya_示例(33) Laya2.0_示例(32) Laya2.0_文档(6) laya_api(4) Laya3.0_文档(4) Laya2.0_api(4)
...); Laya.stage.addChild(card[index]); card[index].name = index; card[index].graphics.drawRect(0, 0, 80, 120, null, "#000000", 2); card[index].graphics.loadImage("linkgame_card.jpg"); card[index].size(80, 120); card[index].pos(10 + 100 * i, 130 + 140 * j); card[index].on(Laya.Event.CLICK, this, functi...
来源: Laya_社区 发布时间: 20160623
...ge.addChild(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; // ...
来源: Laya2.0_示例 发布时间: 20260303
....getRes('res/mao.jpg') // console.log(t) // var a = new Laya.Sprite() // a.graphics.drawTexture(t, 0,0) // a.scaleX = 0.3 // a.scaleY = 0.4 // a.pos(0,300) // Laya.stage.addChild(a) // })) // ape.pos(100, 200) // var c = -15 // Laya.timer.frameLoop(40, null, function () { // c += 0.00001 // console....
来源: Laya_社区 发布时间: 20180104
...戏包解压到工程的res文件夹下。经过反复测试发现可以用graphics绘图,可以改变stage背景颜色,但是图集json加载完成后无法渲染图集中的素材。 2018-07-09 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20180709
...度依托于你滑动的速度、并赋予上下限 line.graphics.drawPath(0,0,[["moveTo",last.x,last.y],["lineTo",first.x,first.y]],{}, {strokeStyle: "rgba(12,434,34,"+(1-(Date.now()-first.time)/times)+")",lineCap: "round",lineWidth: speed}); //绘制两个鼠标记...
来源: Laya_社区 发布时间: 20171018
...tructor() { Laya.init(600,400); var sp:Laya.Sprite = new Laya.Sprite(); sp.graphics.drawRect(0,0,50,50,"#ff8822"); Laya.stage.addChild(sp); var delay:number = 5000; var timeLine:Laya.TimeLine = new Laya.TimeLine(); timeLine.addLabel("0",delay).to(sp,{x:550},500,null,0); timeLine.addLabel("1",delay)....
来源: Laya_社区 发布时间: 20170410
... { if(this.szurl!="") this.disp() this.szurl=url; if(url==null){ this.graphics.clear(); }else{ this.skin=url; } } public disp(){ this.skin=""; if(this.szurl){ Laya.loader.clearRes(this.szurl,true); //***2.0这里写法为Laya.loader.clearRes(this.szurl); } } public set url(value:string){ this.o...
来源: Laya_社区 发布时间: 20181201
...charAt(i); var _x = xAction(j); var _y = yAction(printNumber); this.sprite.graphics.fillText(element, _x, _y, fonts, this.color, "left"); if (yAction(printNumber + 1) > h) { j++; printNumber = 0; } else { printNumber++; } } } drawTextBySprite(sprite: Laya.Sprite) { sprite.addChild(this.sprite); t...
来源: Laya_社区 发布时间: 20191103
...width, bounds.height, -bounds.x + view.x, -bounds.y + view.y); this._agent.graphics.drawTexture(this._agentTexture, (this._agent.width - bounds.width) * 0.5, (this._agent.height - bounds.height) * 0.5); } 附件 : --> 2021-09-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20210911
...ge.addChild(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...
来源: Laya2.0_示例 发布时间: 20260303