Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/excaliburjs/excalibur-ldtk. Excalibur LDTK plugin excaliburjs.com/docs/ldtk-plugin
excalibur excaliburjs ldtk plugin
Something went wrong. Try again.
84%
TypeScript 16%
HTML <1%
readme.md
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 installto install dependencies - Run the
npm run startto run the development server to test out changes
Building bundles #
- Run
npm run startto produce javascript bundles for debugging in thedist/folder - Run
npm run buildto produce javascript bundles for production (minified) in thedist/folder