https://github.com/theatrejs/plugin-ldtk
🛠️ A Plugin for LDTK JSON data.
https://github.com/theatrejs/plugin-ldtk
2d canvas engine game game-engine html html5 javascript ldtk pixel-art plugin theatrejs theatrejs-plugin webgl webgl2
Last synced: 2 months ago
JSON representation
🛠️ A Plugin for LDTK JSON data.
- Host: GitHub
- URL: https://github.com/theatrejs/plugin-ldtk
- Owner: theatrejs
- License: mit
- Created: 2025-02-05T21:15:32.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-02-09T00:10:11.000Z (4 months ago)
- Last Synced: 2025-04-07T09:09:43.158Z (2 months ago)
- Topics: 2d, canvas, engine, game, game-engine, html, html5, javascript, ldtk, pixel-art, plugin, theatrejs, theatrejs-plugin, webgl, webgl2
- Language: JavaScript
- Homepage: https://theatrejs.github.io/plugin-ldtk/
- Size: 869 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/deformhead) [](https://github.com/theatrejs/plugin-ldtk/blob/master/LICENSE) [](https://www.npmjs.com/package/@theatrejs/plugin-ldtk/v/latest) [](https://www.npmjs.com/package/@theatrejs/plugin-ldtk/v/latest)
# LDTK Plugin
> *🛠️ A Plugin for LDTK JSON data.*
## Installation
```shell
npm install @theatrejs/plugin-ldtk --save
```## Quick Start
```javascript
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](https://theatrejs.github.io/plugin-ldtk/index.html)