大约有 436 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0073 秒)
Laya_社区(282) Laya2.0_文档(49) Laya2.0_示例(41) Laya_示例(34) Laya3.0_api(17) Laya3.0_文档(12) Laya2.0_api(1)
...1]; var first=point[i]; var speed=Math.min(400,Math.max(distance(last,first),200));//使线的宽度依托于你滑动的速度、并赋予上下限 line.graphics.drawPath(0,0,[["moveTo",last.x,last.y],["lineTo",first.x,first.y]],{}, {strokeStyle: "rgb...
来源: Laya_社区 发布时间: 20171018
...o代码如下// 程序入口 class GameMain{ constructor() { 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,{...
来源: Laya_社区 发布时间: 20170410
...l(Face/img_duihua_qipao_green_02.png); height:100%; min-height:44px; width:400px; border-top-left-radius:20px; border-bottom-right-radius:20px; border-bottom-left-radius:20px; "> <span style="display:block;padding:20px; font...
来源: Laya_社区 发布时间: 20170710
...rogressBar.png"); this.progressBar.pos(100, 500); this.progressBar.width = 400; this.progressBar.sizeGrid = "5,5,5,5"; this.progressBar.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); }); } // 模拟进度条...
来源: Laya3.0_文档 发布时间: 20251010
... Laya.WebGL; // 程序入口 class GameMain{ constructor() { Laya.init(600,400, WebGL); } static wallet:com.battlecry.idle_m.data_proto.WalletModel; } new GameMain(); 然后编译就卡死 Bug调试: 经过node inspect 发现是layaair-cmd 目录下的tools/tsSort.ts卡死 5...
来源: Laya_社区 发布时间: 20181115
...行结果只看到一个btn被加入了 } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }...
来源: Laya_社区 发布时间: 20170725
...-10 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: Tween.to(sp,{x:400},1000,null,Handler.create(this,onTweeed)) onTween就是你的缓动完成后的回调function 2017-01-04 0 2 分享 微博 QZONE 微信 匿名用户 赞同来自: function begingame(){ console.log("开始游戏"); ...
来源: Laya_社区 发布时间: 20170104
...); Laya.stage.addChild(button3); button3.label="button Three"; button3.pos(400,100); button3.skin="comp/button.png"; button3.toolTip=Handler.create(this,showTips2,["button Three"],false); } private function showTips():void { _testTip.my_label.text="我是button Two" _tip.showDislayTip(_testTip); } p...
来源: Laya_社区 发布时间: 20161115
...create(this, (templet: Laya.SpineTemplet) => { //模版复用 let y = 400; let unitWidth = Laya.stage.width / 16; for (let i = 0; i < 16; i++) { let person = templet.buildArmature(); Laya.stage.addChild(person); person.x = i * unitWidth; person.y = y; person.play("hongse_daiji", true); } }))...
来源: Laya_社区 发布时间: 20220530
...(根据电脑性能而定,本例为10000): ```javascript Laya.init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox = new Laya.Sprite(); for(var i=0;i (图1) 当我们对文字所在的容器设置为cacheAs之后,如下面的例子所示,性能获得较大的提升,FPS达到到了60...
来源: Laya2.0_文档 发布时间: 20210714