ldtk README

项目的 README,来自 github.com/deepnight/ldtk。合并为一个 markdown 文件:README.md。

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)

GitHub Repo stars GitHub All Releases GitHub Workflow Status GitHub Workflow Status

Getting LDtk latest version

Visit LDtk.io to get latest version.

Building from source

Requirements

Installing required stuff

haxe setup.hxml
cd app
npm i

Compiling master branch

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.

Compiling another branch

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

Running

From a command line in the app folder, run:

npm run start

Running inside Hide (as an editor plugin)

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.

Running in NW.js (instead of Electron)

The renderer can also run standalone in NW.js, without the Electron main process:

nw app/nwjs

Contributing

You can read the general Pull Request guidelines here: https://github.com/deepnight/ldtk/wiki#pull-request-guidelines

Related tools & licences

ldtk (deepnight/ldtk)

正在搜索数据库…

5K ·GitHub
这是什么?LDtk(Level Designer Toolkit)是一款现代、轻量且高效的开源 2D 关卡编辑器,用于设计游戏关卡。
它是游戏引擎,还是只是一个关卡编辑器?它是关卡编辑器,不是游戏引擎。该应用是基于 Electron 构建的独立 2D 编辑器,代码使用 Haxe 编写。
怎么让它运行起来?从 LDtk.io 下载最新版本。如果要从源码构建,需要先通过 NPM 安装 Haxe 库和 Electron,然后在应用文件夹中运行它。
使用它需要安装 Haxe 和 Node.js 吗?预构建的应用不需要。从源码构建则需要最新版的 Haxe 和 NPM,NPM 随 NodeJS 一起提供。
尝试开发分支安全吗?不适合日常工作使用。dev-x.y.z 分支可能不稳定或无法正常运行,而且变化很快,因此你需要频繁更新 Haxe 库。
它能在哪些操作系统上运行?README 没有列出具体的操作系统。它是一款 Electron 桌面应用,因此面向桌面系统。
我能在 Hide 编辑器中运行 LDtk 吗?可以。先构建 Hide 插件,然后将 LDtk 添加到 Hide 的 res/props.json 中。它会在独立的标签页中打开,其 CastleDB 枚举同步会读取 Hide 的实时数据库,包括尚未保存的更改。
它能在没有 Electron 的情况下运行吗?可以。渲染进程也能在 NW.js 中独立运行,无需 Electron 主进程。
LDtk 有 Haxe API 吗?有。Haxe API 单独托管在 GitHub 上。构建开发分支时,请将 API 切换到与 LDtk 仓库相同的分支。
有哪些类似的项目?tiled, opentoonz, MonoGame, shift, CanvasTTY, DSH-Launcher, PicGo, hydra
作者
deepnight
大小
150.5 MB
星标
5K
时长
6年
提交 · 90 天