Localize map editor to Chinese
This commit is contained in:
+18
-18
@@ -1,35 +1,35 @@
|
||||
# Map Editor
|
||||
# 地图编辑器
|
||||
|
||||
Static browser-based editor for the game's `.map` files.
|
||||
这是一个静态网页地图编辑器,用来编辑游戏使用的 `.map` 文本文件。
|
||||
|
||||
## Run Locally
|
||||
## 本地运行
|
||||
|
||||
From the repository root:
|
||||
在仓库根目录执行:
|
||||
|
||||
```powershell
|
||||
python -m http.server 8787
|
||||
```
|
||||
|
||||
Open:
|
||||
然后打开:
|
||||
|
||||
```text
|
||||
http://127.0.0.1:8787/tools/map_editor/
|
||||
```
|
||||
|
||||
The editor can fetch `game/assets/map/stage_01.map` when served from the repo root. It can also open any `.map` file through the file picker.
|
||||
从仓库根目录启动静态服务时,编辑器可以自动读取 `game/assets/map/stage_01.map`。也可以通过“打开 .map”选择任意 `.map` 文件。
|
||||
|
||||
## Current Scope
|
||||
## 当前能力
|
||||
|
||||
- Open `.map` text files.
|
||||
- Visualize world, camera, player spawn, collision, stage rects, tile rects, battle zones, and spawn points.
|
||||
- Select objects from the canvas or object list.
|
||||
- Drag objects on the canvas with grid snapping.
|
||||
- Edit selected object numeric properties.
|
||||
- Add/delete collision rectangles, tile rectangles, battle zones, and spawn points.
|
||||
- Download a serialized `.map` file compatible with `StageMapLoader`.
|
||||
- 打开 `.map` 文本文件。
|
||||
- 可视化世界范围、摄像机范围、玩家出生点、碰撞块、场景矩形、铺砖区、战斗区和敌人出生点。
|
||||
- 从画布或对象列表选择对象。
|
||||
- 在画布上拖动对象,支持网格吸附。
|
||||
- 编辑选中对象的数值和文本属性。
|
||||
- 新增/删除图块集、图层、碰撞块、铺砖区、战斗区和出生点。
|
||||
- 下载兼容 `StageMapLoader` 的 `.map` 文本。
|
||||
|
||||
## Limitations
|
||||
## 当前限制
|
||||
|
||||
- Browser security prevents direct overwrite of the original local file. Use Download and replace the project `.map` manually, or deploy with a server-side save endpoint later.
|
||||
- Tileset image preview is not implemented yet; tile rects use fallback colors.
|
||||
- Undo/redo and multi-select are not implemented yet.
|
||||
- 浏览器安全限制不允许静态网页直接覆盖本地源文件。当前需要先下载 `.map`,再手动替换项目里的地图文件;部署到服务器后可以增加服务端保存接口。
|
||||
- 暂未实现图块集图片预览,铺砖区当前使用 fallback 颜色显示。
|
||||
- 暂未实现撤销/重做和多选。
|
||||
|
||||
Reference in New Issue
Block a user