@mousepox/tiled
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i @mousepox/tiled

Weekly Downloads

5

Version

0.1.2

License

ISC

Unpacked Size

5.35 kB

Total Files

12

Last publish

Collaborators

  • geoffblair
  • richtaur