Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/theatrejs/plugin-ldtk

🛠️ A Plugin for LDTK JDON 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: 5 days ago
JSON representation

🛠️ A Plugin for LDTK JDON data.

Awesome Lists containing this project

README

        

[![Copyright](https://img.shields.io/badge/©-deformhead-white.svg)](https://github.com/deformhead) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/theatrejs/plugin-ldtk/blob/master/LICENSE) [![Bundle Size (Gzipped)](https://img.shields.io/bundlejs/size/@theatrejs/plugin-ldtk@latest)](https://www.npmjs.com/package/@theatrejs/plugin-ldtk/v/latest) [![NPM Version](https://img.shields.io/npm/v/@theatrejs/plugin-ldtk/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 PLUGINLDTK from '@theatrejs/plugin-ldtk';

import ldtkData from './ldtk.json';

const ldtk = new PLUGINLDTK.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)