mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-04 21:11:58 +00:00
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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user