Modern, lightweight and efficient 2D level editor
See the code![]()
Level Designer Toolkit (LDtk) is a modern, efficient and open-source 2D level editor with a strong focus on user-friendliness.
Links: Official website | Haxe API (on GitHub)
Visit LDtk.io to get latest version.
ldtk root dir,haxe setup.hxml
app dir):cd app
npm i
First, from the root of the repo, build the electron Main:
haxe main.debug.hxml
This should create a app/assets/main.js file.
Then, build the electron Renderer:
haxe renderer.debug.hxml
This should create app/assets/js/renderer.js.
If you want to try a future version of LDtk, you can checkout branches named dev-x.y.z where x.y.z is version number.
IMPORTANT:
haxelib git ldtk-haxe-api https://github.com/deepnight/ldtk-haxe-api.git dev-0.6.0
From a command line in the app folder, run:
npm run start
LDtk can run embedded in a Hide tab.
First build the plugin (from the ldtk root dir):
haxe hide-plugin.hxml
This creates app/nwjs/hide-plugin.js (sources in src/hide/plugin/). Then add to the Hide project's res/props.json (ldtk.project is optional and resolves relative to res/):
"plugins": [ "/path/to/ldtk/app/nwjs/hide-plugin.js" ],
"menu.extra": "<menu label='LDtk' component='ldtk.LdtkView'></menu>",
"ldtk.project": "path/to/world.ldtk"
LDtk then opens from the menu, in its own tab. Bonus: its CastleDB enum sync reads Hide's live database, unsaved changes included.
The renderer can also run standalone in NW.js, without the Electron main process:
nw app/nwjs
You can read the general Pull Request guidelines here: https://github.com/deepnight/ldtk/wiki#pull-request-guidelines
(top 24 of 78)
1,783 followers · starred Jan 2023
570 followers · starred Mar 2022
678 followers · starred Feb 2021
1,088 followers · starred Dec 2023
Modern, lightweight and efficient 2D level editor
See the code![]()
Level Designer Toolkit (LDtk) is a modern, efficient and open-source 2D level editor with a strong focus on user-friendliness.
Links: Official website | Haxe API (on GitHub)
Visit LDtk.io to get latest version.
ldtk root dir,haxe setup.hxml
app dir):cd app
npm i
First, from the root of the repo, build the electron Main:
haxe main.debug.hxml
This should create a app/assets/main.js file.
Then, build the electron Renderer:
haxe renderer.debug.hxml
This should create app/assets/js/renderer.js.
If you want to try a future version of LDtk, you can checkout branches named dev-x.y.z where x.y.z is version number.
IMPORTANT:
haxelib git ldtk-haxe-api https://github.com/deepnight/ldtk-haxe-api.git dev-0.6.0
From a command line in the app folder, run:
npm run start
LDtk can run embedded in a Hide tab.
First build the plugin (from the ldtk root dir):
haxe hide-plugin.hxml
This creates app/nwjs/hide-plugin.js (sources in src/hide/plugin/). Then add to the Hide project's res/props.json (ldtk.project is optional and resolves relative to res/):
"plugins": [ "/path/to/ldtk/app/nwjs/hide-plugin.js" ],
"menu.extra": "<menu label='LDtk' component='ldtk.LdtkView'></menu>",
"ldtk.project": "path/to/world.ldtk"
LDtk then opens from the menu, in its own tab. Bonus: its CastleDB enum sync reads Hide's live database, unsaved changes included.
The renderer can also run standalone in NW.js, without the Electron main process:
nw app/nwjs
You can read the general Pull Request guidelines here: https://github.com/deepnight/ldtk/wiki#pull-request-guidelines
(top 24 of 78)
1,783 followers · starred Jan 2023
570 followers · starred Mar 2022
678 followers · starred Feb 2021
1,088 followers · starred Dec 2023