Skip to content

v0.3.1 — Fog polish & testMap / JSON init

Choose a tag to compare

@ShenyfZero9211 ShenyfZero9211 released this 11 Apr 17:08

v0.3.1

战争迷雾

  • 在保留原有逻辑三态(未探索 / 已探索不可见 / 当前可见)的前提下,为显示层增加 alpha 平滑过渡,黑雾与灰雾之间的变化更柔和。
  • 揭开到「正常可见」时(从未探索或灰雾进入当前视野):硬切、无淡入,与地形同步变清晰。
  • 主战场与小地图使用同一套显示 alpha,观感一致。

地图与开局(testMap

  • 地图 JSON 增加字段 testMap(缺省为 true,旧图无需改即可保持原行为)。
  • testMap: true:引擎仍执行内置演示开局(双方基地、矿、仓库、兵营及默认小队等,逻辑与此前一致)。
  • testMap: false执行上述演示开局;仅从 JSON 的 initialBuildingsinitialUnits(以及 goldMines 等已有逻辑)生成实体。运行时开始读取并放置 initialBuildings(格坐标贴齐放置)。

地图编辑器

  • 「新地图」对话框与右栏元数据区可切换 测试地图(对应 testMap),保存时写入 JSON。
  • 撤销/重做快照包含 testMap 状态。

文档与数据

  • docs/scripts_and_tools_reference.md 补充 testMapinitialBuildingsinitialUnits 与引擎行为说明。
  • data/map_test.json 等示例中可显式包含 "testMap": true

English summary

  • Fog: Smoother visual blending between unexplored and explored-shrouded tiles; instant reveal (no fade) when a tile becomes fully visible.
  • Maps: Optional testMap flag; when false, the game skips the built-in demo start and uses only initialBuildings / initialUnits from JSON (buildings are now consumed by the engine).
  • Map editor: UI to edit testMap; included in undo/redo snapshots.