大约有 520 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0049 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
...载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //Laya.stage.addChild(testView...
来源: Laya_社区 发布时间: 20180525
...e(0, 0, Conf.App_Width, Conf.App_Height); //创建TiledMap地图 this.tMap.createMap("map/"+mapname+".json",viewRect, laya.utils.Handler.create(this, this.test));//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLayer = this.tMap.getLayerByName("player"); this.tMapPlayer ...
来源: Laya_社区 发布时间: 20170627
...ructor() { super(); Laya.loader.load("res/images/map_01.png", Laya.Handler.create(this, this.bgLoaded)); } bgLoaded(): void { let t: Laya.Texture = Laya.loader.getRes("res/images/map_01.png"); this.width = 1000; this.height = 500; this.graphics.fillTexture(t, 0, 0); this.zOrder = -1; } } 2017-07-14 ...
来源: Laya_社区 发布时间: 20170714
...o(ColorTool.getInstance(), { persent: 1 }, time * 1000, null, Laya.Handler.create(this, this.setPersent, [0])); } /** * 颜色改变函数 * @param color 目标色值 * @param lastColor 当前色值 * @param persent 差值 */ public colorFilter(color: number, lastColor: number, persent: number): L...
来源: Laya_社区 发布时间: 20180930
... this.soundMan = Laya.SoundManager.playMusic(this.leadSoundUrl, 1, Handler.create(this, this.soundEndFun1)); this._btnTimeOutPlay.visible = true; this._btnPlaySound.visible = false; this.playBoo = false; return; } ...
来源: Laya_社区 发布时间: 20190919
...画 Laya.Tween.to(point,{x:point.x,y:point.y,alpha:1,update:Laya.Handler.create(point,function(){ this.visible = true; })},800,Laya.Ease.backOut,null,i*400); timeline在一开始还在正常执行, 当有一半左右的ui元素进入到场景时, timeline循环卡住不动了, 等所有ui动画执...
来源: Laya_社区 发布时间: 20180118
...ayIcon") as Image; processTimer = ProcessTimer.create(img,new laya.maths.Size(70,70)); processTimer.setPercentage(100); processTimer.setType(ProcessTimer.PROGRESS_TIMER_TYPE_RECT); process...
来源: Laya_社区 发布时间: 20180404
..., type : Laya.Loader.IMAGE}, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2)); Laya.URL.basePath = "https://piggy.q1.com"; var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "im...
来源: Laya_社区 发布时间: 20180531
...le,并添加到舞台显示 Laya.loader.load("js/loading100.js", Handler.create(this, complete), null, Loader.TEXT); } private function complete(data:*):void { trace("ok3") __JS__("window.eval(data)"); //此行报错 var load:* = __JS__('new loading100()'); Laya.stage.addChild(load); trace("loadin...
来源: Laya_社区 发布时间: 20170725
... // 初始化物理引擎 engine = Matter.Engine.create({enableSleeping: true}); Matter.Engine.run(engine); var render = LayaRender.create({engine: engine, width: 800, height: 600, options: ...
来源: Laya_社区 发布时间: 20170822