• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 125 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)

41. 画出来鼠标轨迹线 [ 61%]

...时间 }; //鼠标移动时触发的mousemove事件 //事件 Laya.stage.frameLoop(1,this,draw); //响应事件 function draw(){     lines.destroyChildren();//清除遮罩层中所有子精灵,进行重绘     point=point.filter(function(val){         return (Date.now()-val.ti...

来源: Laya_社区 发布时间: 20171018

42. 分享:LayaAir实现曲线运动 [ 61%]

...,"#FF00FF"); Laya.stage.addChild(ball); ball.x=275; ball.y=200; Laya.timer.frameLoop(1,this,onFrame); } private function onFrame():void { // TODO Auto Generated method stub if (ball.x>540||ball.x<10) { xflag=! xflag; } if (xflag) { ball.x+=v; ball.y=200+d*Math.sin(v*ball.x*Math.PI/180); } else...

来源: Laya_社区 发布时间: 20160424

43. Laya 绑定显示内容到骨骼动画 [ 60%]

...x<0){ this.__bindList.push(source); } this.addChild(source); this.timer.frameLoop(1,this,this.__updateBinds); }  unbind(source:BindSource):void{ let index:number=this.__bindList.indexOf(source); if(index<0){ throw new Error("找不到要删除的绑定内容"); } this.removeChild(source); ...

来源: Laya_社区 发布时间: 20190805

44. 微信小游戏图片加载不出来 [ 59%]

...hild(this.bg2); //创建一个循环,更新容器的位置 Laya.timer.frameLoop(1, this, this.onLoop); 补充:在游戏开始游戏中loader的加载方法也用了,就是没有。 2018-11-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

来源: Laya_社区 发布时间: 20181105

45. laya.display.Node [ 58%]

...ent(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于率)。功能同Laya.timer.frameLoop()。 Node  frameOnce(delay:int, caller:*, method:...

来源: Laya2.0_api 发布时间: 20190513

46. laya.display.AnimationPlayerBase [ 56%]

...event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Fu...

来源: laya_api 发布时间: 20170929

47. laya.display.AnimationBase [ 56%]

...event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Fu...

来源: Laya2.0_api 发布时间: 20190513

48. 内存优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 54%]

...ALL; //背景颜色 Laya.stage.bgColor = "#232628"; //循环 Laya.timer.frameLoop(1, this, onFrame); this.createTime = 0; function onFrame() { //如果创建对象时间为100间隔后 if (this.createTime >= 100) { //每200间隔创建30个雪花 for (var i = 0; i 640 + 20 || img1.scaleX ...

来源: Laya2.0_文档 发布时间: 20210715

49. 内存优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 54%]

...ALL; //背景颜色 Laya.stage.bgColor = "#232628"; //循环 Laya.timer.frameLoop(1, this, this.onFrame); } onFrame(): void { //如果创建对象时间为100间隔后 if (this.createTime >= 100) { //每200间隔创建30个雪花 for (var i: number = 0; i 640+20||img1.scaleX 在一些特殊...

来源: Laya2.0_文档 发布时间: 20210715

50. 内存优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 53%]

...ALL; //背景颜色 Laya.stage.bgColor = "#232628"; //循环 Laya.timer.frameLoop(1,this,onFrame); } private function onFrame():void { //如果创建对象时间为100间隔后 if(createTime>=100) { //每200间隔创建30个雪花 for(var i:int=0;i640+20||img1.scaleX(图2-1) 在一些...

来源: Laya2.0_文档 发布时间: 20210715