diff --git a/docs/battle-map-terrain-atlas-pipeline.md b/docs/battle-map-terrain-atlas-pipeline.md index 9a2d67e..7d2f690 100644 --- a/docs/battle-map-terrain-atlas-pipeline.md +++ b/docs/battle-map-terrain-atlas-pipeline.md @@ -2,7 +2,7 @@ ## Scope -The first fifty-eight campaign battles now use the same hand-painted tactical map pipeline. The renderer still reads the original scenario tile coordinates and battle logic; only the map texture asset changes from flat/vector map art to low-contrast raster terrain. +The first sixty campaign battles now use the same hand-painted tactical map pipeline. The renderer still reads the original scenario tile coordinates and battle logic; only the map texture asset changes from flat/vector map art to low-contrast raster terrain. ## Art Direction @@ -21,6 +21,7 @@ The first fifty-eight campaign battles now use the same hand-painted tactical ma - Massive maps can use a 144px tile target through `MASSIVE_LARGE_MAP_TILE_SIZE` when 152px output approaches the WebP encoder edge. - Colossal maps can use a 136px tile target through `COLOSSAL_LARGE_MAP_TILE_SIZE` when 144px output hits WebP encoding error 6. - Gigantic maps can use a 128px tile target through `GIGANTIC_LARGE_MAP_TILE_SIZE` when 136px output would exceed the known WebP encoder comfort range. +- Immense maps can use a 120px tile target through `IMMENSE_LARGE_MAP_TILE_SIZE` when 128px output hits WebP encoding error 6. - Re-evaluate the tile target before a generated map's longest edge approaches roughly 16,384px at 192px per tile. - Use `--tile-size` only for controlled comparisons; commit the selected production size in the map config. @@ -88,6 +89,8 @@ python scripts/generate-handpaint-map-sample.py --map fifty-fifth --webp-quality python scripts/generate-handpaint-map-sample.py --map fifty-sixth --webp-quality 90 python scripts/generate-handpaint-map-sample.py --map fifty-seventh --webp-quality 90 python scripts/generate-handpaint-map-sample.py --map fifty-eighth --webp-quality 90 +python scripts/generate-handpaint-map-sample.py --map fifty-ninth --webp-quality 90 +python scripts/generate-handpaint-map-sample.py --map sixtieth --webp-quality 90 ``` Comparison example: @@ -156,6 +159,8 @@ python scripts/generate-handpaint-map-sample.py --map thirtieth --tile-size 192 - `src/assets/images/battle/fifty-sixth-battle-map.webp` - `src/assets/images/battle/fifty-seventh-battle-map.webp` - `src/assets/images/battle/fifty-eighth-battle-map.webp` +- `src/assets/images/battle/fifty-ninth-battle-map.webp` +- `src/assets/images/battle/sixtieth-battle-map.webp` ## QA Outputs @@ -273,5 +278,9 @@ python scripts/generate-handpaint-map-sample.py --map thirtieth --tile-size 192 - `docs/fifty-seventh-battle-map-handpaint-preview.png` - `docs/fifty-eighth-battle-map-handpaint-before-after.png` - `docs/fifty-eighth-battle-map-handpaint-preview.png` +- `docs/fifty-ninth-battle-map-handpaint-before-after.png` +- `docs/fifty-ninth-battle-map-handpaint-preview.png` +- `docs/sixtieth-battle-map-handpaint-before-after.png` +- `docs/sixtieth-battle-map-handpaint-preview.png` Browser screenshots are saved per verification run after build/deploy. diff --git a/docs/fifty-ninth-battle-map-handpaint-before-after.png b/docs/fifty-ninth-battle-map-handpaint-before-after.png new file mode 100644 index 0000000..a490dc0 Binary files /dev/null and b/docs/fifty-ninth-battle-map-handpaint-before-after.png differ diff --git a/docs/fifty-ninth-battle-map-handpaint-preview.png b/docs/fifty-ninth-battle-map-handpaint-preview.png new file mode 100644 index 0000000..ee51008 Binary files /dev/null and b/docs/fifty-ninth-battle-map-handpaint-preview.png differ diff --git a/docs/sixtieth-battle-map-handpaint-before-after.png b/docs/sixtieth-battle-map-handpaint-before-after.png new file mode 100644 index 0000000..ba3879f Binary files /dev/null and b/docs/sixtieth-battle-map-handpaint-before-after.png differ diff --git a/docs/sixtieth-battle-map-handpaint-preview.png b/docs/sixtieth-battle-map-handpaint-preview.png new file mode 100644 index 0000000..8c7c235 Binary files /dev/null and b/docs/sixtieth-battle-map-handpaint-preview.png differ diff --git a/scripts/generate-handpaint-map-sample.py b/scripts/generate-handpaint-map-sample.py index 955862f..c646999 100644 --- a/scripts/generate-handpaint-map-sample.py +++ b/scripts/generate-handpaint-map-sample.py @@ -23,6 +23,7 @@ EXTREME_LARGE_MAP_TILE_SIZE = 152 MASSIVE_LARGE_MAP_TILE_SIZE = 144 COLOSSAL_LARGE_MAP_TILE_SIZE = 136 GIGANTIC_LARGE_MAP_TILE_SIZE = 128 +IMMENSE_LARGE_MAP_TILE_SIZE = 120 TILE = DEFAULT_TILE_SIZE RNG = random.Random(240704) @@ -582,6 +583,26 @@ MAP_CONFIGS = { "seed": 241274, "tile_size": GIGANTIC_LARGE_MAP_TILE_SIZE, }, + "fifty-ninth": { + "slug": "fifty-ninth-battle-map", + "terrain_export": "fiftyNinthBattleMap", + "units_export": "fiftyNinthBattleUnits", + "ally_positions_export": "fiftyNinthBattleAllyPositions", + "out": BATTLE_IMAGE_DIR / "fifty-ninth-battle-map.webp", + "before": BATTLE_IMAGE_DIR / "fifty-ninth-battle-map.svg", + "seed": 241284, + "tile_size": GIGANTIC_LARGE_MAP_TILE_SIZE, + }, + "sixtieth": { + "slug": "sixtieth-battle-map", + "terrain_export": "sixtiethBattleMap", + "units_export": "sixtiethBattleUnits", + "ally_positions_export": "sixtiethBattleAllyPositions", + "out": BATTLE_IMAGE_DIR / "sixtieth-battle-map.webp", + "before": BATTLE_IMAGE_DIR / "sixtieth-battle-map.svg", + "seed": 241294, + "tile_size": IMMENSE_LARGE_MAP_TILE_SIZE, + }, } @@ -1223,8 +1244,8 @@ def main() -> None: config = dict(MAP_CONFIGS[args.map]) if args.tile_size is not None: - if args.tile_size < 128: - raise ValueError("--tile-size must be 128 or greater") + if args.tile_size < 120: + raise ValueError("--tile-size must be 120 or greater") config["tile_size"] = args.tile_size out_path = args.out or Path(config["out"]) before_path = args.before or Path(config["before"]) diff --git a/src/assets/images/battle/fifty-ninth-battle-map.svg b/src/assets/images/battle/fifty-ninth-battle-map.svg deleted file mode 100644 index 4b4d266..0000000 --- a/src/assets/images/battle/fifty-ninth-battle-map.svg +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/assets/images/battle/fifty-ninth-battle-map.webp b/src/assets/images/battle/fifty-ninth-battle-map.webp new file mode 100644 index 0000000..de583e7 Binary files /dev/null and b/src/assets/images/battle/fifty-ninth-battle-map.webp differ diff --git a/src/assets/images/battle/sixtieth-battle-map.svg b/src/assets/images/battle/sixtieth-battle-map.svg deleted file mode 100644 index 754cbd3..0000000 --- a/src/assets/images/battle/sixtieth-battle-map.svg +++ /dev/null @@ -1,66 +0,0 @@ - - Wudu and Yinping mountain campaign map - Original tactical battlefield map with twin northern valleys, mountain roads, river bends, Shu camps, Wei forts, and commandery towns. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 촉 진영 - 음평로 - 무도로 - 곽회 방어선 - 위 본영 - - diff --git a/src/assets/images/battle/sixtieth-battle-map.webp b/src/assets/images/battle/sixtieth-battle-map.webp new file mode 100644 index 0000000..11ed070 Binary files /dev/null and b/src/assets/images/battle/sixtieth-battle-map.webp differ diff --git a/src/game/data/battleMapAssets.ts b/src/game/data/battleMapAssets.ts index 475e738..cd21833 100644 --- a/src/game/data/battleMapAssets.ts +++ b/src/game/data/battleMapAssets.ts @@ -8,8 +8,8 @@ import fiftyThirdBattleMapUrl from '../../assets/images/battle/fifty-third-battl import fiftyFourthBattleMapUrl from '../../assets/images/battle/fifty-fourth-battle-map.webp'; import fiftyFifthBattleMapUrl from '../../assets/images/battle/fifty-fifth-battle-map.webp'; import fiftyEighthBattleMapUrl from '../../assets/images/battle/fifty-eighth-battle-map.webp'; -import fiftyNinthBattleMapUrl from '../../assets/images/battle/fifty-ninth-battle-map.svg'; -import sixtiethBattleMapUrl from '../../assets/images/battle/sixtieth-battle-map.svg'; +import fiftyNinthBattleMapUrl from '../../assets/images/battle/fifty-ninth-battle-map.webp'; +import sixtiethBattleMapUrl from '../../assets/images/battle/sixtieth-battle-map.webp'; import sixtyFirstBattleMapUrl from '../../assets/images/battle/sixty-first-battle-map.svg'; import sixtySecondBattleMapUrl from '../../assets/images/battle/sixty-second-battle-map.svg'; import sixtyThirdBattleMapUrl from '../../assets/images/battle/sixty-third-battle-map.svg';