Enhance game map handling with microGameMap integration

- Added `microGameMap` to support a new resolution level for compact games, allowing for more efficient map loading and pathfinding.
- Updated `createGame` and `GameImpl` to incorporate `microGameMap`, ensuring proper handling of different map resolutions.
- Modified `loadTerrainMap` to always expose the 16x map for coarse heuristics, improving navigation capabilities.
This commit is contained in:
scamiv
2025-12-27 16:35:10 +01:00
parent e08acdf09c
commit 2776294220
7 changed files with 96 additions and 3 deletions
+2 -1
View File
@@ -13,10 +13,11 @@ Yes. The terrain loader already ships multiple resolutions per map:
- `manifest.map4x` + `map4x.bin` (coarser)
- `manifest.map16x` + `map16x.bin` (even coarser)
At runtime we already load both:
At runtime we load:
- `gameMap`: full res for normal games (or `map4x` for compact games)
- `miniGameMap`: lower res (`map4x` for normal games, or `map16x` for compact games)
- `microGameMap`: always `map16x` (in compact games this is the same instance as `miniGameMap`)
So we can prototype coarse-to-fine without extending mapgen first.