Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Latest commit

 

History

History
18 lines (12 loc) · 522 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 522 Bytes

@mousepox/tiled

Tiled map editor helpers and TypeScript definitions.

Usage

import { ITiledObjectGroup, TiledMap } from "@mousepox/tiled";

// Create new TiledMap object from parsed Tiled JSON
const map = new TiledMap(parsedTiledJSON);

// Get an object group layer named "entities"
const entities = map.getLayerByName<ITiledObjectGroup>("entities");

// Get a custom map property
const foobar = map.getCustomPropertyValue<string>("foobar");