大约有 395 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)
Laya_社区(141) Laya3.0_api(63) Laya2.0_api(59) laya_api(50) Laya2.0_文档(44) Laya3.0_文档(36) Laya_示例(2)
...tangle = new Laya.Rectangle(0, 0, Laya.stage.designWidth, Laya.stage.designHeight); //创建TiledMap地图 this.tMap.createMap("resources/TiledMap/orthogonal.json", viewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void { this.tMap.mapSprite()...
来源: Laya3.0_文档 发布时间: 20251010
....x + this.width) && y > this.y && y < (this.y + this.height)){ return true; } return false; } })(); 这里通过Floor中的init方法来增加type参数 1 代表默认宽度 传其他值 则是随机宽度 然后我们打开 MapFloor.js 也需要将初始化Floor的地...
来源: Laya_社区 发布时间: 20160801
...iewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代码,当鼠标点击屏幕时,会发射一...
来源: Laya3.0_文档 发布时间: 20251010
...]; // 守护神设置旋转 this.angel.pivot(boundAngel.width/2,boundAngel.height); this.angel.rotation = -15; // 守护神设置呼吸 Laya.Tween.to(this.angel,{scaleY:0.99},900,Laya.Ease.linearInOut,Handler.create(this,this.angelTween1)); // 飞艇设置浮动 Laya.Tween.to(this.aeroboat,{y:-data....
来源: Laya_社区 发布时间: 20170720
...rowser.clientWidth`获取逻辑分辨率的宽,通过`Laya.Browser.clientHeight`获取逻辑分辨率的高。 在手机等移动设备的竖屏状态下,窄面为宽,长面为高。如果发生了屏幕翻转的横屏状态,则长的一面为宽,窄面为高。 在PC浏览器中,则是...
来源: Laya2.0_文档 发布时间: 20210715