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

Tiled map editor helpers and TypeScript definitions.

License

Notifications You must be signed in to change notification settings

geoffb/mousepox-tiled

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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");