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'
});