TiledMapLoadTask

Extends: FileLoadTask

Loads a Tiled map, its external .tsj tilesets and its images, over as many frames as it takes - see AssetLoader.loadTiledMap().

Properties

  • loader (BGE.AssetLoader) — Makes the tileset and image downloads. Set by AssetLoader.
  • downloadOptions (BGE.DownloadOptions) — Options for those downloads. Set by AssetLoader.

Constructor

new TiledMapLoadTask( game: BGE.Game, mapName: string, path: string, ): TiledMapLoadTask

Parameters

  • game (BGE.Game)
  • mapName (string)
  • path (string)

Instance Methods

loadFile(budgetMs: integer): boolean

Parameters

  • budgetMs (integer)

Returns

  • boolean

getFileProgress(): float

Returns

  • float

isDownloadedFileBad(): boolean

Returns

  • boolean

abort(): void

Returns

  • void