Expand mossy cavern stage map

This commit is contained in:
2026-06-10 11:08:07 +08:00
parent 21f633658c
commit c6d42ff0e0
7 changed files with 162 additions and 83 deletions
+11 -10
View File
@@ -341,19 +341,20 @@ game/assets
### 6.3 关卡数据格式
初期可以用 JSON
当前项目已经改为 `.map` 文本数据,由 `StageMapLoader` 读取
```json
{
"player_spawn": { "x": 100, "y": 300 },
"bounds": { "x": 0, "y": 0, "w": 3200, "h": 720 },
"solids": [],
"enemy_spawns": [],
"triggers": []
}
```text
map stage_01
world 6400 720
camera 0 0 6400 720
player_spawn 160 496
collision <x> <y> <w> <h>
layer <id> <role> <parallax>
rect_sprite_src <x> <y> <w> <h> <r> <g> <b> <a> <texture> <sx> <sy> <sw> <sh>
battle_zone <id> <trigger_x> <trigger_y> <trigger_w> <trigger_h> <camera_x> <camera_y> <camera_w> <camera_h>
```
后续可以考虑接入 Tiled,或者制作自定义简单编辑器
当前已经有自定义网页地图编辑器,后续优先继续完善 `.map` 编辑和部署流程
## 7. 动画和美术阶段