大约有 149 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0043 秒)
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,WebGL); //创建TiledMap实例 tMap = new TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Rectangle = new Rectangle(0, 0, Browser.width, Browser.height); //创建TiledMap地图 tMap.createMap("res/TiledMap/orthogonal-outside.json",viewRect, Handle...
来源: Laya_社区 发布时间: 20180428
...Laya.Sprite; var MapLayer = Laya.MapLayer; Laya.init(800, 800); var map1 = new TiledMap(); map1.createMap("res/maps/scence1.json",new Rectangle(0,0,800, 800),Handler.create(this,onMapLoaded)); function onMapLoaded(){ console.log("地图加载完成"); }scence1.json { "height":25, "infinite":false, "...
来源: Laya_社区 发布时间: 20180326
...景不显示实时阴影 微信小游戏中访问带空格的文件出错 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 播放声音出错,求指教 项目分包后, 运行出错 问题状态 最新活动: 2019-10-11 11:40 浏览: 835 关注: 1 人
来源: Laya_社区 发布时间: 20191011
...his.scene1); this.myCar = this.scene1.getChildByName("myCar"); var scale = new Laya.Vector3(2, 2, 2); this.myCar.transform.localScale = scale; let a = this.myCar.addComponent(Laya.PhysicsCollider); }报错如附件中图片。 附件 : --> 2019-06-20 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20190620
...e.on("click", this, onStageClick); })(); function createMap() { tiledMap = new TiledMap(); tiledMap.createMap("../../res/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, mapLoaded), null, new Point(1600, 800)); } function onStag...
来源: Laya_示例 发布时间: 20260106
....TiledMap, Rectangle = Laya.Rectangle, Point = Laya.Point; this.tiledMap = new TiledMap(); this.tiledMap.createMap("res/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Laya.Handler.create(this, this.mapLoaded), null, new Point(1600, 800)); } onStag...
来源: Laya2.0_示例 发布时间: 20260106
...dc.layabox.com/api/ function createMap() { //创建地图对象 tiledMap = new TiledMap(); mX = mY = 0; //创建地图,适当的时候调用destory销毁地图 tiledMap.createMap("res/TiledMap/map1.json", new Rectangle(0, 0, Browser.width, Browser.height), new Handler(this, completeHandl...
来源: Laya_社区 发布时间: 20171205
...ate var m_Role:Animation; private var m_RolePosition:Point = new Point(1200,1000); private var m_MovStartPos:Point = new Point(); private var m_MovDistanceX:int = 0 ; private var m_MovDistanceY:int = 0 ; private var m_IsMoving:Boo...
来源: Laya_社区 发布时间: 20170921
...当背景移动时,会显示间隔线且会不停闪烁 this.mapBg = new Laya.Sprite(); this.mapBg.name = "map"; this.mapBg.width = GameMain._width; this.mapBg.height = GameMain._height; this.mapBg.x = 0; this.mapBg.y = 0; this.mapBg.graphics.fillTexture(texture, 0, 0, GameMain._width, GameMain....
来源: Laya_社区 发布时间: 20170903
...加载本地图片都报错 请问一下 ProtoBuf 支持 as3 版本吗? new Laya.Sprite();绘制图形以后,怎么删除释放资源? 问题状态 最新活动: 2018-05-28 17:30 浏览: 1460 关注: 2 人 Prajna • 2018-05-28 17:35 ~~ Laya_Aaron • 2018-05-28 17:36 @Prajna:你res//atlas 多...
来源: Laya_社区 发布时间: 20180528