Integrate mossy cavern stage scene
This commit is contained in:
@@ -72,11 +72,18 @@ endbattle_zone
|
||||
- `tile_index` 当前表示 tileset 第一行的横向 tile 序号。
|
||||
- `r g b` 是该批 tile 的灰盒 fallback 色,alpha 固定为 `1.0`。
|
||||
|
||||
当前 `stage_01.map` 已把 `level_visual` 地面和平台从长色块替换为 `tile_rect`,碰撞仍由 `collision` 独立定义。
|
||||
当前 `stage_01.map` 已接入 Mossy Cavern 场景图集:
|
||||
|
||||
- `BackgroundFar` 使用 `mossy_background_decoration.png` 做远景洞穴轮廓。
|
||||
- `BackgroundMid` 使用 `mossy_hills.png` 做中景苔藓轮廓。
|
||||
- `LevelVisual` 使用 `mossy_floating_platforms.png` 做地面和悬空平台。
|
||||
- `PropsBack` / `PropsFront` 使用苔藓悬挂植物和平台边缘装饰。
|
||||
|
||||
本轮只接入地图场景视觉,碰撞仍由 `collision` 独立定义;角色、怪物、植物动画和 hazard 玩法暂不接入。
|
||||
|
||||
## 下一步
|
||||
|
||||
- 下一阶段开始正式做地图场景,优先建设简易 `.map` 编辑器,详见 `map_editor.md`。
|
||||
- 继续用地图编辑器调整 Mossy 场景视觉块和碰撞对齐。
|
||||
- 把 `tile_rect` 扩展成可表达 tile row/column 或 tile id。
|
||||
- 增加空 layer、battle zone 无 spawn、tile texture 不存在等更严格错误日志。
|
||||
- 保留 `whitebox_level.cpp` 作为 fallback,不再把主地图写死在 C++。
|
||||
|
||||
@@ -34,6 +34,20 @@ UI
|
||||
- 支持 `.map` tile entry 绘制。
|
||||
- 支持 tileset 图片缺失时按 tile fallback 色绘制。
|
||||
- 资源缺失时先检查 `Asset::exists()`,再回退色块,不触发纹理加载错误日志。
|
||||
- `LevelVisual` 里的贴图矩形不再叠加灰盒顶边辅助线;只有纯色占位块会显示该辅助线。
|
||||
|
||||
## 当前素材接入
|
||||
|
||||
第一关已经通过 `rect_sprite_src` 接入 Mossy Cavern 场景图集:
|
||||
|
||||
- `background/mossy_background_decoration.png`
|
||||
- `background/mossy_hills.png`
|
||||
- `tiles/mossy_floating_platforms.png`
|
||||
- `props/mossy_hanging_plants.png`
|
||||
- `props/mossy_decorations_hazards.png`
|
||||
- `tiles/mossy_tileset.png`
|
||||
|
||||
由于当前 `tile_rect` 只能取 tileset 第一行,正式 Mossy 场景暂时优先使用 `rect_sprite_src` 从大图集裁切。`mossy_tileset.png` 已落位,等后续扩展 tile row/column 或 tile id 后再用于精细铺砖。
|
||||
|
||||
## 约束
|
||||
|
||||
@@ -44,5 +58,5 @@ UI
|
||||
## 下一步
|
||||
|
||||
- 给 tile entry 增加 tile id 或二维 source index。
|
||||
- 把正式 tileset 素材接入 `stage_01.map`。
|
||||
- 用地图编辑器继续调整 Mossy 场景块、前后景装饰和碰撞对齐。
|
||||
- 如果引擎提供统一 Texture cache,再迁移当前局部贴图缓存。
|
||||
|
||||
Reference in New Issue
Block a user