Package Exports
- @theatrejs/plugin-ldtk
- @theatrejs/plugin-ldtk/sources/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@theatrejs/plugin-ldtk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
LDTK Plugin
🛠️ A Plugin for LDTK JSON data.
Installation
npm install @theatrejs/plugin-ldtk --save
Quick Start
import * as PLUGIN_LDTK from '@theatrejs/plugin-ldtk';
import ldtkData from './ldtk.json';
const ldtk = new PLUGIN_LDTK.Ldtk(ldtkData);
const entities = ldtk.getEntities({
$level: 'Prototype',
$layer: 'actors'
});
const grid = ldtk.getGrid({
$level: 'Prototype',
$layer: 'grid'
});