diff --git a/docs/battle-map-terrain-atlas-pipeline.md b/docs/battle-map-terrain-atlas-pipeline.md index 8ea75d1..f8b582b 100644 --- a/docs/battle-map-terrain-atlas-pipeline.md +++ b/docs/battle-map-terrain-atlas-pipeline.md @@ -2,7 +2,7 @@ ## Scope -The first forty-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 fifty 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 @@ -17,6 +17,7 @@ The first forty-eight campaign battles now use the same hand-painted tactical ma - Large maps starting at battle 26 use a 192px tile target through `LARGE_MAP_TILE_SIZE` in the generator. - Very large maps can use a 176px tile target through `VERY_LARGE_MAP_TILE_SIZE` when WebP encoding or browser memory pressure becomes the limiting factor. - Ultra large maps can use a 160px tile target through `ULTRA_LARGE_MAP_TILE_SIZE` when 176px output exceeds WebP encoder limits. +- Extreme large maps can use a 152px tile target through `EXTREME_LARGE_MAP_TILE_SIZE` when 160px output exceeds WebP encoder limits. - 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. @@ -74,6 +75,8 @@ python scripts/generate-handpaint-map-sample.py --map forty-fifth --webp-quality python scripts/generate-handpaint-map-sample.py --map forty-sixth --webp-quality 90 python scripts/generate-handpaint-map-sample.py --map forty-seventh --webp-quality 90 python scripts/generate-handpaint-map-sample.py --map forty-eighth --webp-quality 90 +python scripts/generate-handpaint-map-sample.py --map forty-ninth --webp-quality 90 +python scripts/generate-handpaint-map-sample.py --map fiftieth --webp-quality 90 ``` Comparison example: @@ -132,6 +135,8 @@ python scripts/generate-handpaint-map-sample.py --map thirtieth --tile-size 192 - `src/assets/images/battle/forty-sixth-battle-map.webp` - `src/assets/images/battle/forty-seventh-battle-map.webp` - `src/assets/images/battle/forty-eighth-battle-map.webp` +- `src/assets/images/battle/forty-ninth-battle-map.webp` +- `src/assets/images/battle/fiftieth-battle-map.webp` ## QA Outputs @@ -229,5 +234,9 @@ python scripts/generate-handpaint-map-sample.py --map thirtieth --tile-size 192 - `docs/forty-seventh-battle-map-handpaint-preview.png` - `docs/forty-eighth-battle-map-handpaint-before-after.png` - `docs/forty-eighth-battle-map-handpaint-preview.png` +- `docs/forty-ninth-battle-map-handpaint-before-after.png` +- `docs/forty-ninth-battle-map-handpaint-preview.png` +- `docs/fiftieth-battle-map-handpaint-before-after.png` +- `docs/fiftieth-battle-map-handpaint-preview.png` Browser screenshots are saved per verification run after build/deploy. diff --git a/docs/fiftieth-battle-map-handpaint-before-after.png b/docs/fiftieth-battle-map-handpaint-before-after.png new file mode 100644 index 0000000..59e0ed8 Binary files /dev/null and b/docs/fiftieth-battle-map-handpaint-before-after.png differ diff --git a/docs/fiftieth-battle-map-handpaint-preview.png b/docs/fiftieth-battle-map-handpaint-preview.png new file mode 100644 index 0000000..fa2a6f3 Binary files /dev/null and b/docs/fiftieth-battle-map-handpaint-preview.png differ diff --git a/docs/forty-ninth-battle-map-handpaint-before-after.png b/docs/forty-ninth-battle-map-handpaint-before-after.png new file mode 100644 index 0000000..d7ae8ad Binary files /dev/null and b/docs/forty-ninth-battle-map-handpaint-before-after.png differ diff --git a/docs/forty-ninth-battle-map-handpaint-preview.png b/docs/forty-ninth-battle-map-handpaint-preview.png new file mode 100644 index 0000000..782f9e7 Binary files /dev/null and b/docs/forty-ninth-battle-map-handpaint-preview.png differ diff --git a/scripts/generate-handpaint-map-sample.py b/scripts/generate-handpaint-map-sample.py index 6b96d2c..9b31a07 100644 --- a/scripts/generate-handpaint-map-sample.py +++ b/scripts/generate-handpaint-map-sample.py @@ -19,6 +19,7 @@ DEFAULT_TILE_SIZE = 224 LARGE_MAP_TILE_SIZE = 192 VERY_LARGE_MAP_TILE_SIZE = 176 ULTRA_LARGE_MAP_TILE_SIZE = 160 +EXTREME_LARGE_MAP_TILE_SIZE = 152 TILE = DEFAULT_TILE_SIZE RNG = random.Random(240704) @@ -478,6 +479,26 @@ MAP_CONFIGS = { "seed": 241174, "tile_size": ULTRA_LARGE_MAP_TILE_SIZE, }, + "forty-ninth": { + "slug": "forty-ninth-battle-map", + "terrain_export": "fortyNinthBattleMap", + "units_export": "fortyNinthBattleUnits", + "ally_positions_export": "fortyNinthBattleAllyPositions", + "out": BATTLE_IMAGE_DIR / "forty-ninth-battle-map.webp", + "before": BATTLE_IMAGE_DIR / "forty-ninth-battle-map.svg", + "seed": 241184, + "tile_size": EXTREME_LARGE_MAP_TILE_SIZE, + }, + "fiftieth": { + "slug": "fiftieth-battle-map", + "terrain_export": "fiftiethBattleMap", + "units_export": "fiftiethBattleUnits", + "ally_positions_export": "fiftiethBattleAllyPositions", + "out": BATTLE_IMAGE_DIR / "fiftieth-battle-map.webp", + "before": BATTLE_IMAGE_DIR / "fiftieth-battle-map.svg", + "seed": 241194, + "tile_size": EXTREME_LARGE_MAP_TILE_SIZE, + }, } @@ -1116,8 +1137,8 @@ def main() -> None: config = dict(MAP_CONFIGS[args.map]) if args.tile_size is not None: - if args.tile_size < 160: - raise ValueError("--tile-size must be 160 or greater") + if args.tile_size < 144: + raise ValueError("--tile-size must be 144 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/fiftieth-battle-map.svg b/src/assets/images/battle/fiftieth-battle-map.svg deleted file mode 100644 index 6792bd7..0000000 --- a/src/assets/images/battle/fiftieth-battle-map.svg +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/assets/images/battle/fiftieth-battle-map.webp b/src/assets/images/battle/fiftieth-battle-map.webp new file mode 100644 index 0000000..6f4b672 Binary files /dev/null and b/src/assets/images/battle/fiftieth-battle-map.webp differ diff --git a/src/assets/images/battle/forty-ninth-battle-map.svg b/src/assets/images/battle/forty-ninth-battle-map.svg deleted file mode 100644 index e2999ff..0000000 --- a/src/assets/images/battle/forty-ninth-battle-map.svg +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/assets/images/battle/forty-ninth-battle-map.webp b/src/assets/images/battle/forty-ninth-battle-map.webp new file mode 100644 index 0000000..9234c37 Binary files /dev/null and b/src/assets/images/battle/forty-ninth-battle-map.webp differ diff --git a/src/game/data/battleMapAssets.ts b/src/game/data/battleMapAssets.ts index c9a63a4..1f54e4e 100644 --- a/src/game/data/battleMapAssets.ts +++ b/src/game/data/battleMapAssets.ts @@ -1,7 +1,7 @@ import eighthBattleMapUrl from '../../assets/images/battle/eighth-battle-map.webp'; import eighteenthBattleMapUrl from '../../assets/images/battle/eighteenth-battle-map.webp'; import eleventhBattleMapUrl from '../../assets/images/battle/eleventh-battle-map.webp'; -import fiftiethBattleMapUrl from '../../assets/images/battle/fiftieth-battle-map.svg'; +import fiftiethBattleMapUrl from '../../assets/images/battle/fiftieth-battle-map.webp'; import fiftyFirstBattleMapUrl from '../../assets/images/battle/fifty-first-battle-map.svg'; import fiftySecondBattleMapUrl from '../../assets/images/battle/fifty-second-battle-map.svg'; import fiftyThirdBattleMapUrl from '../../assets/images/battle/fifty-third-battle-map.svg'; @@ -26,7 +26,7 @@ import fortyEighthBattleMapUrl from '../../assets/images/battle/forty-eighth-bat import fortyFifthBattleMapUrl from '../../assets/images/battle/forty-fifth-battle-map.webp'; import fortyFirstBattleMapUrl from '../../assets/images/battle/forty-first-battle-map.webp'; import fortyFourthBattleMapUrl from '../../assets/images/battle/forty-fourth-battle-map.webp'; -import fortyNinthBattleMapUrl from '../../assets/images/battle/forty-ninth-battle-map.svg'; +import fortyNinthBattleMapUrl from '../../assets/images/battle/forty-ninth-battle-map.webp'; import fortySecondBattleMapUrl from '../../assets/images/battle/forty-second-battle-map.webp'; import fortySeventhBattleMapUrl from '../../assets/images/battle/forty-seventh-battle-map.webp'; import fortySixthBattleMapUrl from '../../assets/images/battle/forty-sixth-battle-map.webp';