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

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

1. 输入设备-地图 [ 100%]

...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_示例 发布时间: 20250222

2. 加载-错误处理和进度 [ 90%]

...ader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_ProgressAndErrorHandle { constructor() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls: Array = ["do not exist", "../../res/fighter/fighter.png", "../../res/legend/map.jpg"]; La...

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

3. 区块地图-PerspectiveWall [ 71%]

...ectangle; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class TiledMap_PerspectiveWall { private tiledMap: TiledMap; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(700, 500, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER;...

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

4. 区块地图-等角地图 [ 70%]

...ectangle; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class TiledMap_IsometricWorld { private tiledMap: TiledMap; private layer: MapLayer; private sprite: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1600, 800, WebGL); Laya.stage.alignV = Stage.ALI...

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

5. 区块地图-带动画的地图 [ 69%]

...dMap; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class TiledMap_AnimationTile { private tiledMap: TiledMap; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1100, 800, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER;...

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

6. 区块地图-滚动地图 [ 54%]

...= Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class TiledMap_SimpleDemo { private tiledMap: TiledMap; private mLastMouseX: number = 0; private mLastMouseY: number = 0; private mX: number = 0; private mY: number = 0; constructor() { // 不支持WebGL时自动切换至Canv...

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