大约有 149 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0040 秒)
Laya_社区(94) Laya3.0_api(22) Laya2.0_文档(11) Laya2.0_示例(6) Laya_示例(6) Laya3.0_文档(4) laya_api(3) Laya2.0_api(3)
...化引擎 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.Event.ERROR, this, this.errorHandler);...
来源: Laya_社区 发布时间: 20180629
...提示undefined是为什么,是2.0以后就不支持了吗? this.tMap =new laya.map.TiledMap; 执行后直接报下面的错误。 TypeError: Cannot read property 'TiledMap' of undefined 2018-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20181012
...oParentPoint updateGridPos updateZOrder fromImage Constructors constructor new MapLayer(): MapLayer Inherited from Sprite.constructor Overrides Node.constructor Defined in laya/display/Sprite.ts:296 Returns MapLayer Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in ...
来源: Laya3.0_api 发布时间: 20231115
... 个回复 Sy 赞同来自: const matrices = Array(4).fill('').map(_ => new Laya.Matrix()) matrices.forEach((matrix, i) => matrix.rotate(Math.PI / 2 * i)) tileIndices.forEach((idxOnSource, idxOnTilemap) => { if (!idxOnSource) return const position = tilemap.getTilePositionByIndex(idxOnTilem...
来源: Laya_社区 发布时间: 20180720
...is.createMovieClip(); } private createMovieClip():void{ var mc:MovieClip = new MovieClip(); mc.load(this.SWFPath); mc.pos(0,0); Laya.stage.addChild(mc); } } } new laya.Animation_SWF(); Charles • 2018-01-08 13:51 支持遮罩动画吗?请帮忙看看我这个问题,https://ask.layabox.com/quest...
来源: Laya_社区 发布时间: 20171103
... function _OnMapCreate() { console.log("map create ..."); } var viewRect = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); var tMap = new Laya.TiledMap(); tMap.createMap("res/isometric_grass_and_water.json", viewRect, Laya.Handler.create(this, this._OnMapCreate), null, new Laya.Point(...
来源: Laya_社区 发布时间: 20190102
...}); listData.map((item, index) => { var hotShow: boolean = false; var newShow: boolean = false; if (index >= 3 && index < 8) { hotShow = true; } if (index >= 11 && index < 16) { newShow = true; } data.push({ gameName: { text: item.name }, gameIcon: { skin: item...
来源: Laya_社区 发布时间: 20200805
...ame:string, x:number, y:number){ super(); //显示登陆界面 this.tMap = new Laya.TiledMap() this.tMap.antiCrack = true //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Conf.App_Width, Conf.App_Height); //创建TiledMap地图 this.tMap.createMap("map/"+...
来源: Laya_社区 发布时间: 20170627
...unction MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.skyBox = new Laya.SkyBox(); this.camera.sky = this.skyBox; this.skyBox.textureCube = Laya.TextureCube.load("s...
来源: Laya_社区 发布时间: 20170323
...vas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//...
来源: laya_api 发布时间: 20170929