• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 93 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0037 秒)

1. laya.map.TileTexSet_API3.0 [ 100%]

...ited Externals Only exported Menu Globals "laya/map/TileTexSet" TileTexSet Class TileTexSet 此类是子纹理类,也包括同类动画的管理 TiledMap会把纹理分割成无数子纹理,也可以把其中的某块子纹理替换成一个动画序列 本类的实现就是如果发现子纹理...

来源: Laya3.0_api 发布时间: 20231115

2. Timer Handler被覆盖 [ 96%]

Timer Handler被覆盖   class Timer   _getHandler(caller, method) { var cid = caller ? caller.$_GID || (caller.$_GID = ILaya.Utils.getGID()) : 0; var mid = method.$_TID || (method.$_TID = (Timer._mid++) * 100000); return this._map[cid + mid]; }   当游戏玩的功能多时间长了,随着cal...

来源: Laya_社区 发布时间: 20210701

3. Cannot read property 'load' of null [ 95%]

...Laya.loader是null,为什么会出现为null的情况?  代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=...

来源: Laya_社区 发布时间: 20171124

4. laya.map.TiledMap_API3.0 [ 94%]

...nherited Externals Only exported Menu Globals "laya/map/TiledMap" TiledMap Class TiledMap tiledMap是整个地图的核心 地图以层级来划分地图(例如:地表层,植被层,建筑层) 每层又以分块(GridSprite)来处理显示对象,只显示在视口区域的区 每块又...

来源: Laya3.0_api 发布时间: 20231115

5. 输入设备-地图 [ 93%]

...、LayaAirIDE让项目开发更高效。let map, marker, mapDiv, infoText; class InputDevice_Map { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Geolocation = Laya.Geolocation; // 不支持WebGL时自动切换至Canvas...

来源: Laya2.0_示例 发布时间: 20250220

6. 输入设备-地图 [ 90%]

...Info; import Browser = Laya.Browser; import Handler = Laya.Handler; export class InputDevice_Map { // 百度地图 private map; private marker; private BMap = Browser.window.BMap; private convertor = new this.BMap.Convertor(); // Div private mapDiv; private infoText:Text; constructor() { Laya.init(B...

来源: Laya_示例 发布时间: 20250220

7. laya.map.TileTexSet [ 89%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames TileTexSetProperties | Methods Packagelaya.mapClasspublic class TileTexSetInheritanceTileTexSet Object 此类是子纹理类,也包括同类动画的管理 TiledMap会把纹理分割成无数子纹理,也可以把其...

来源: laya_api 发布时间: 20170929

8. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 88%]

...aths.Rectangle; import laya.utils.Browser; import laya.webgl.WebGL; public class TiledMapDemo { private var tMap:TiledMap; public function TiledMapDemo() { //初始化舞台 Laya.init(Browser.width, Browser.height, WebGL); //创建TiledMap实例 tMap = new TiledMap(); //创建Rectangle实例,视...

来源: Laya2.0_文档 发布时间: 20210714

9. 重复背景,全方向地图拖动Demo [ 88%]

...o UI创建4个image  var分别: map0,map1,map2,map3 背景图宽高 1800 class WorldPage extends ui.WorldPageUI{ constructor (x,y) { super() this.maxX = 149850 this.maxY = 97500 this.offsetX = x * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg...

来源: Laya_社区 发布时间: 20181220

10. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 88%]

...    import { ui } from '../ui/layaMaxUI'; /**主界面 */ export default class Main extends ui.mainUI { /**地图链接 */ MAP_URL:string = 'res/tiled/map.json';  /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) } ...

来源: Laya_社区 发布时间: 20190218