mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00

* Tilemaps made with [LDtk](https://ldtk.io/), a modern 2D level editor, can be now used directly. Make sure to save your map made in LDtk as a JSON file, create a new Tilemap object in GDevelop and in the Tilemap field, choose the LDtk file. * Tilesets used by the LDtk Tilemap are automatically imported in your game - you don't need to import them separately. * For more information, read about the [Tilemap object on the wiki](https://wiki.gdevelop.io/gdevelop5/objects/tilemap). Co-authored-by: Davy Hélard <davy.helard@gmail.com> Co-authored-by: Florian Rival <Florian.Rival@gmail.com>
19 lines
559 B
TypeScript
19 lines
559 B
TypeScript
import type { EditableTileMap } from '../model/TileMapModel';
|
|
import { TileMap } from '../types';
|
|
export declare namespace TileMapLoader {
|
|
/**
|
|
* Create a {@link EditableTileMap} from the raw data.
|
|
*
|
|
* @param tiledMap The data exported from Tiled/LDtk.
|
|
* @param levelIndex The level of the tile map to load from.
|
|
* @param pako The zlib library.
|
|
* @returns A {@link EditableTileMap}
|
|
*/
|
|
function load(
|
|
tileMap: TileMap,
|
|
levelIndex: number,
|
|
pako: any
|
|
): EditableTileMap | null;
|
|
}
|
|
//# sourceMappingURL=TileMapLoader.d.ts.map
|