大约有 422 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
...ndler.create(this, onLoading, null, false)); // 使用图集 var arr = []; for(var i=1; i<=12; i++){ arr.push('nvhaidaomao/nvhaidaomao_down'+i+'.png'); } Animation.createFrames(arr, 'plane_fly'); // 运行游戏报错 Failed to load resource:net::ERR_FILE_NOT_FOUND [error]failed to load : d:/lt-g...
来源: Laya_社区 发布时间: 20170326
...间隔后 if (this.createTime >= 100) { //每200帧间隔创建30个雪花 for (var i: number = 0; i 640+20||img1.scaleX 在一些特殊情况我们需要注意`Laya.Hanlder.create()`的使用方式,我们仔细看图3中的`Laya.Hanlder.create()`方法说明。 从对象池内创建一个Handler...
来源: Laya2.0_文档 发布时间: 20210715
... this._sources=; if (this._stateNum===1){ this._sources.push(img); }else { for (var i=0;i < this._stateNum;i++){ this._sources.push(Texture.createFromTexture(img,0,height *i,width,height)); } } AutoBitmap.setCache(key,this._sources); } if (this._autoSize){ this._bitmap.width=this._width || width;...
来源: Laya_社区 发布时间: 20170516
...unction () { function GameMain() { //初始化引擎 Laya.init(1136, 640); for (var i = 0; i < 4; i++) { var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); var url = "http://thirdqq.qlogo.cn/g%3Fb% ... 3B%3B xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, 1]); xhr.once(...
来源: Laya_社区 发布时间: 20180629
...个BUG,修复如下: laya.d3.js -> SimpleSingletonList.Clear -> for (var i = 0, n = this.length; i < n; i++) 引擎代码 i没有赋初值,导致 i<n永远为false. 2020-03-21 0 0 分享 微博 QZONE 微信 沃德提安呐·郝舒艾 赞同来自: 引擎开发成员水平堪忧! ...
来源: Laya_社区 发布时间: 20190618
碰撞检测,intersects方法造成sprite消失 //碰撞检测 for(var i:number=0;i<this.roleBox.numChildren;i++){ let role:Laya.Animation=this.roleBox.getChildAt(i) as Laya.Animation // 只要去掉下面这行代码就不会消失 let isIntersect:boolean=this.home.player.getBounds().intersec...
来源: Laya_社区 发布时间: 20171111
...; } _proto.onLoop = function(){ // 检测人物是否踩在地板上面了 for(var i = this.mapFloor.numChildren - 1; i > -1; i--){ var floor = this.mapFloor.getChildAt(i); //检测人物是否踩在地板上面了 if(floor.checkHit(this.player.x, this.player.y)){ //人物如果踩到地板了 ...
来源: Laya_社区 发布时间: 20160801
...EquipArr = BagData.ins.getItemByType(PackType.item_); //遍历装备列表 for(var i:int = 0; i < allEquipArr.length; i++) { var itemlo:ItemConfigLO = BagData.ins.getItemConfigLOById(allEquipArr[i].baseId.toString()); //装备类型分类再显示 if(itemlo) { data.push({itemImg:""+item...
来源: Laya_社区 发布时间: 20180321
... console.log("碰撞了.."); var home = _gamePage._mainPage._playPage; for(var i = 0; i < event.pairs.length; i++) { var pair = event.pairs[i]; if(!(pair.bodyA.label === 'gun' || pair.bodyB.label == "gun")) continue; var other; if (pair.bodyA.label === 'gun') { other = pair.bodyB; } e...
来源: Laya_社区 发布时间: 20180601
...ge.addChild(list); // 设置数据项为对应图片的路径 var data = ; for (var i = 0; i < 100; ++i) { data.push({ lb: i, value: i }); // data.push("../../res/ui/listskins/1.jpg"); // data.push("../../res/ui/listskins/2.jpg"); // data.push("../../res/ui/listskins/3.jpg"); // data.push("../../...
来源: Laya_社区 发布时间: 20180312