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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    3
  • 0.1.1
    1
  • 0.1.0
    1

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