@excaliburjs/plugin-ldtk
TypeScript icon, indicating that this package has built-in type declarations

0.29.5 • Public • Published

Excalibur LDtk Plugin

This extension adds support for LDtk tile maps from https://ldtk.io/ in Excalibur!

This plugin supports the latest released version of LDtk, currently 1.5.3.

Installation

npm install @excaliburjs/plugin-ldtk

Create your resource, load it, then add it to your scene!

const game = new ex.Engine({...});

const ldtkMap = new LdtkResource('./path/to/my/cool-map.ldtk');

const loader = new ex.Loader([ldtkMap]);

game.start(loader).then(() => {
    ldtkMap.addToScene(game.currentScene);
});

Read the full documentation at https://excaliburjs.com/docs/ldtk-plugin

Local Development

  • Using nodejs and npm
  • Run the npm install to install dependencies
  • Run the npm run start to run the development server to test out changes

Building bundles

  • Run npm run start to produce javascript bundles for debugging in the dist/ folder
  • Run npm run build to produce javascript bundles for production (minified) in the dist/ folder

Readme

Keywords

none

Package Sidebar

Install

npm i @excaliburjs/plugin-ldtk

Weekly Downloads

3

Version

0.29.5

License

BSD-2-Clause

Unpacked Size

1.04 MB

Total Files

24

Last publish

Collaborators

  • jedeen
  • eonarheim
  • kamranayub
  • alanag13