JSPM

@theatrejs/plugin-ldtk

1.2.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q48468F
  • License MIT

🛠️ A Plugin for LDTK JSON data.

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

Copyright License Bundle Size (Gzipped) NPM Version

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

API