大约有 279 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
Laya_社区(207) Laya3.0_api(26) Laya2.0_文档(16) Laya3.0_文档(9) Laya2.0_示例(6) Laya_示例(6) laya_api(5) Laya2.0_api(4)
...| Frames No Frames GridSpriteProperties | Methods | Events Packagelaya.mapClasspublic class GridSpriteInheritanceGridSprite Sprite Node EventDispatcher Object 地图的每层都会分块渲染处理 本类就是地图的块数据 Public Properties Hide Inherited Public Properties Show Inherited ...
来源: laya_api 发布时间: 20170929
...addChild(this.scene); 3.新建模型,并且添加B页面的3D场景中 var map: Laya.Sprite3D = Laya.Sprite3D.load("cj/cj.lh"); this.scene.addChild(map); 4.切换页面 private playGame(): void { Laya.stage.removeChild(this.welcomePanel); this.gamePanel = new GamePanel();//不管是不是重新ne...
来源: Laya_社区 发布时间: 20180411
...显示,当背景移动时,会显示间隔线且会不停闪烁 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, ...
来源: Laya_社区 发布时间: 20170903
...umentationAll Packages | All Classes | Index | Frames No Frames TiledMapProperties | Methods | Constants Packagelaya.mapClasspublic class TiledMapInheritanceTiledMap Object tiledMap是整个地图的核心 地图以层级来划分地图(例如:地表层,植被层,建筑层) 每层...
来源: laya_api 发布时间: 20170929
...umentationAll Packages | All Classes | Index | Frames No Frames TiledMapProperties | Methods | Constants Packagelaya.mapClasspublic class TiledMapInheritanceTiledMap Object tiledMap是整个地图的核心 地图以层级来划分地图(例如:地表层,植被层,建筑层) 每层...
来源: Laya2.0_api 发布时间: 20190513
...戏中音乐播放报错 gameThirdScriptError Invalid value used as weak map key;at audioContext.oncanplay callback function TypeError: Invalid value used as weak map key at WeakMap.set (native) at e.P (http://127.0.0.1:9973/game/__d ... :29956) at e.t.(anonymous function) [as onCanplay] (http://127...
来源: Laya_社区 发布时间: 20180104
...图片怎么设置要显示的x,y坐标和宽高? 代码: import TiledMap = Laya.TiledMap; class GameMain{ private tMap:TiledMap; constructor() { Laya.init(935, 224, Laya.WebGL); this.tMap = new TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.heig...
来源: Laya_社区 发布时间: 20190214
关于设置动画轴心点问题 // 动画 Laya.Animation.createFrames(["map/Characters/Blue_JumpLeft_Smile.png"], ActionType.JUMP_LEFT); // 创建动画 this.animation = new Laya.Animation(); this.animation.interval = 150; this.animation.play(0, true, ActionType.MOVE_RIGHT); this.addChild(this.an...
来源: Laya_社区 发布时间: 20170119
TiledMap加载报错 relativePath为空 如图,加载tiledmap是一直报错这个。relativePath应该是json文件中png的位置吧,我明明有定义,但是为啥加载不到呢 var TiledMap = Laya.TiledMap; var Rectangle = Laya.Rectangle; var Handler = Laya.Handler; var Sprite = Laya.Spr...
来源: Laya_社区 发布时间: 20180326
...| Frames No Frames GridSpriteProperties | Methods | Events Packagelaya.mapClasspublic class GridSpriteInheritanceGridSprite Sprite Node EventDispatcher Object 地图的每层都会分块渲染处理 本类就是地图的块数据 Public Properties Hide Inherited Public Properties Show Inherited ...
来源: Laya2.0_api 发布时间: 20190513