LightGame 完成 Windows

This commit is contained in:
SepComet
2026-06-14 09:42:27 +08:00
parent 254a8ce5c8
commit 786170f40a
50 changed files with 85787 additions and 1392 deletions
+10
View File
@@ -223,6 +223,16 @@ src/Apps/Game/generated/tom_atlas.h
`assets/sprite/` 用于存放测试用 PNG sprite 源文件及转换后的头文件,Tom 主游戏不依赖它。Tom 游戏的 atlas 资源由 `src/Apps/Game/tools/asset_pipeline/SpriteAssetTool.cpp` 从 `src/Apps/Game/assets/raw/` 读取原始 PNG 生成。
### LightGame Tile Atlas
LightGame 的 tile atlas 配置位于 `assets/tile/tile_atlas.json`,生成结果位于 `src/Apps/LightGame/generated/tile_atlas.h`:
```bash
python tools/pack_tile_atlas.py assets/tile/tile_atlas.json src/Apps/LightGame/generated/tile_atlas.h
```
当前 tile id 约定集中在 `src/Apps/LightGame/src/engine/TileIds.h`:`0` 是空透明 tile;`1..4` 是背景装饰;`5..11` 是可碰撞地形;`12`/`22` 是伤害尖刺;`13..18` 是光照平台和门的状态贴图;`19..21` 是金币、旗帜和 checkpoint;`23` 是藤蔓装饰。LightGame 关卡支持可选 `background_tiles` 视觉层,该层先于主 tilemap 渲染,不参与碰撞、死亡、触发器或光照 tile 规则。
### Bitmap Font 转换
像素字体图集使用 `tools/gen_font_atlas.py` 生成: