14 KiB
14 KiB
Hand-Painted Tactical Map Pipeline
Scope
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
- Units must read before the terrain at 100% desktop browser scale.
- Terrain uses muted greens, ochre roads, dark blue-green water, and compact structure markers.
- Roads, forests, rivers, camps, villages, cliffs, and forts should be recognizable by silhouette and texture, not by high saturation.
- The grid remains subtle and embedded in the paint grade, so it helps targeting without becoming the main visual layer.
Resolution Policy
- Battles 1-25 keep the original 224px hand-painted tile target.
- Large maps starting at battle 26 use a 192px tile target through
LARGE_MAP_TILE_SIZEin the generator. - Very large maps can use a 176px tile target through
VERY_LARGE_MAP_TILE_SIZEwhen WebP encoding or browser memory pressure becomes the limiting factor. - Ultra large maps can use a 160px tile target through
ULTRA_LARGE_MAP_TILE_SIZEwhen 176px output exceeds WebP encoder limits. - Extreme large maps can use a 152px tile target through
EXTREME_LARGE_MAP_TILE_SIZEwhen 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-sizeonly for controlled comparisons; commit the selected production size in the map config.
Generator
scripts/generate-handpaint-map-sample.py reads terrain and unit positions from src/game/data/scenario.ts, then outputs a WebP map and documentation previews. Map configs can set tile_size; otherwise the default is 224px.
Example:
python scripts/generate-handpaint-map-sample.py --map second --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map third --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map fourth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map fifth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map sixth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map seventh --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map eighth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map ninth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map tenth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map eleventh --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map twelfth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map thirteenth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map fourteenth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map fifteenth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map sixteenth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map seventeenth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map eighteenth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map nineteenth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map twentieth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map twenty-first --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map twenty-second --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map twenty-third --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map twenty-fourth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map twenty-fifth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map twenty-sixth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map twenty-seventh --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map twenty-eighth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map twenty-ninth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map thirtieth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map thirty-first --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map thirty-second --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map thirty-third --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map thirty-fourth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map thirty-fifth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map thirty-sixth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map thirty-seventh --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map thirty-eighth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map thirty-ninth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map fortieth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map forty-first --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map forty-second --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map forty-third --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map forty-fourth --webp-quality 90
python scripts/generate-handpaint-map-sample.py --map forty-fifth --webp-quality 90
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:
python scripts/generate-handpaint-map-sample.py --map thirtieth --tile-size 192 --out tmp\thirtieth-battle-map-192-test.webp --comparison tmp\thirtieth-battle-map-192-test-before-after.png --preview tmp\thirtieth-battle-map-192-test-preview.png --webp-quality 90
Current Assets
src/assets/images/battle/first-battle-map.webpsrc/assets/images/battle/second-battle-map.webpsrc/assets/images/battle/third-battle-map.webpsrc/assets/images/battle/fourth-battle-map.webpsrc/assets/images/battle/fifth-battle-map.webpsrc/assets/images/battle/sixth-battle-map.webpsrc/assets/images/battle/seventh-battle-map.webpsrc/assets/images/battle/eighth-battle-map.webpsrc/assets/images/battle/ninth-battle-map.webpsrc/assets/images/battle/tenth-battle-map.webpsrc/assets/images/battle/eleventh-battle-map.webpsrc/assets/images/battle/twelfth-battle-map.webpsrc/assets/images/battle/thirteenth-battle-map.webpsrc/assets/images/battle/fourteenth-battle-map.webpsrc/assets/images/battle/fifteenth-battle-map.webpsrc/assets/images/battle/sixteenth-battle-map.webpsrc/assets/images/battle/seventeenth-battle-map.webpsrc/assets/images/battle/eighteenth-battle-map.webpsrc/assets/images/battle/nineteenth-battle-map.webpsrc/assets/images/battle/twentieth-battle-map.webpsrc/assets/images/battle/twenty-first-battle-map.webpsrc/assets/images/battle/twenty-second-battle-map.webpsrc/assets/images/battle/twenty-third-battle-map.webpsrc/assets/images/battle/twenty-fourth-battle-map.webpsrc/assets/images/battle/twenty-fifth-battle-map.webpsrc/assets/images/battle/twenty-sixth-battle-map.webpsrc/assets/images/battle/twenty-seventh-battle-map.webpsrc/assets/images/battle/twenty-eighth-battle-map.webpsrc/assets/images/battle/twenty-ninth-battle-map.webpsrc/assets/images/battle/thirtieth-battle-map.webpsrc/assets/images/battle/thirty-first-battle-map.webpsrc/assets/images/battle/thirty-second-battle-map.webpsrc/assets/images/battle/thirty-third-battle-map.webpsrc/assets/images/battle/thirty-fourth-battle-map.webpsrc/assets/images/battle/thirty-fifth-battle-map.webpsrc/assets/images/battle/thirty-sixth-battle-map.webpsrc/assets/images/battle/thirty-seventh-battle-map.webpsrc/assets/images/battle/thirty-eighth-battle-map.webpsrc/assets/images/battle/thirty-ninth-battle-map.webpsrc/assets/images/battle/fortieth-battle-map.webpsrc/assets/images/battle/forty-first-battle-map.webpsrc/assets/images/battle/forty-second-battle-map.webpsrc/assets/images/battle/forty-third-battle-map.webpsrc/assets/images/battle/forty-fourth-battle-map.webpsrc/assets/images/battle/forty-fifth-battle-map.webpsrc/assets/images/battle/forty-sixth-battle-map.webpsrc/assets/images/battle/forty-seventh-battle-map.webpsrc/assets/images/battle/forty-eighth-battle-map.webpsrc/assets/images/battle/forty-ninth-battle-map.webpsrc/assets/images/battle/fiftieth-battle-map.webp
QA Outputs
docs/second-battle-map-handpaint-before-after.pngdocs/second-battle-map-handpaint-preview.pngdocs/third-battle-map-handpaint-before-after.pngdocs/third-battle-map-handpaint-preview.pngdocs/fourth-battle-map-handpaint-before-after.pngdocs/fourth-battle-map-handpaint-preview.pngdocs/fifth-battle-map-handpaint-before-after.pngdocs/fifth-battle-map-handpaint-preview.pngdocs/sixth-battle-map-handpaint-before-after.pngdocs/sixth-battle-map-handpaint-preview.pngdocs/seventh-battle-map-handpaint-before-after.pngdocs/seventh-battle-map-handpaint-preview.pngdocs/eighth-battle-map-handpaint-before-after.pngdocs/eighth-battle-map-handpaint-preview.pngdocs/ninth-battle-map-handpaint-before-after.pngdocs/ninth-battle-map-handpaint-preview.pngdocs/tenth-battle-map-handpaint-before-after.pngdocs/tenth-battle-map-handpaint-preview.pngdocs/eleventh-battle-map-handpaint-before-after.pngdocs/eleventh-battle-map-handpaint-preview.pngdocs/twelfth-battle-map-handpaint-before-after.pngdocs/twelfth-battle-map-handpaint-preview.pngdocs/thirteenth-battle-map-handpaint-before-after.pngdocs/thirteenth-battle-map-handpaint-preview.pngdocs/fourteenth-battle-map-handpaint-before-after.pngdocs/fourteenth-battle-map-handpaint-preview.pngdocs/fifteenth-battle-map-handpaint-before-after.pngdocs/fifteenth-battle-map-handpaint-preview.pngdocs/sixteenth-battle-map-handpaint-before-after.pngdocs/sixteenth-battle-map-handpaint-preview.pngdocs/seventeenth-battle-map-handpaint-before-after.pngdocs/seventeenth-battle-map-handpaint-preview.pngdocs/eighteenth-battle-map-handpaint-before-after.pngdocs/eighteenth-battle-map-handpaint-preview.pngdocs/nineteenth-battle-map-handpaint-before-after.pngdocs/nineteenth-battle-map-handpaint-preview.pngdocs/twentieth-battle-map-handpaint-before-after.pngdocs/twentieth-battle-map-handpaint-preview.pngdocs/twenty-first-battle-map-handpaint-before-after.pngdocs/twenty-first-battle-map-handpaint-preview.pngdocs/twenty-second-battle-map-handpaint-before-after.pngdocs/twenty-second-battle-map-handpaint-preview.pngdocs/twenty-third-battle-map-handpaint-before-after.pngdocs/twenty-third-battle-map-handpaint-preview.pngdocs/twenty-fourth-battle-map-handpaint-before-after.pngdocs/twenty-fourth-battle-map-handpaint-preview.pngdocs/twenty-fifth-battle-map-handpaint-before-after.pngdocs/twenty-fifth-battle-map-handpaint-preview.pngdocs/twenty-sixth-battle-map-handpaint-before-after.pngdocs/twenty-sixth-battle-map-handpaint-preview.pngdocs/twenty-seventh-battle-map-handpaint-before-after.pngdocs/twenty-seventh-battle-map-handpaint-preview.pngdocs/twenty-eighth-battle-map-handpaint-before-after.pngdocs/twenty-eighth-battle-map-handpaint-preview.pngdocs/twenty-ninth-battle-map-handpaint-before-after.pngdocs/twenty-ninth-battle-map-handpaint-preview.pngdocs/thirtieth-battle-map-handpaint-before-after.pngdocs/thirtieth-battle-map-handpaint-preview.pngdocs/thirty-first-battle-map-handpaint-before-after.pngdocs/thirty-first-battle-map-handpaint-preview.pngdocs/thirty-second-battle-map-handpaint-before-after.pngdocs/thirty-second-battle-map-handpaint-preview.pngdocs/thirty-third-battle-map-handpaint-before-after.pngdocs/thirty-third-battle-map-handpaint-preview.pngdocs/thirty-fourth-battle-map-handpaint-before-after.pngdocs/thirty-fourth-battle-map-handpaint-preview.pngdocs/thirty-fifth-battle-map-handpaint-before-after.pngdocs/thirty-fifth-battle-map-handpaint-preview.pngdocs/thirty-sixth-battle-map-handpaint-before-after.pngdocs/thirty-sixth-battle-map-handpaint-preview.pngdocs/thirty-seventh-battle-map-handpaint-before-after.pngdocs/thirty-seventh-battle-map-handpaint-preview.pngdocs/thirty-eighth-battle-map-handpaint-before-after.pngdocs/thirty-eighth-battle-map-handpaint-preview.pngdocs/thirty-ninth-battle-map-handpaint-before-after.pngdocs/thirty-ninth-battle-map-handpaint-preview.pngdocs/fortieth-battle-map-handpaint-before-after.pngdocs/fortieth-battle-map-handpaint-preview.pngdocs/forty-first-battle-map-handpaint-before-after.pngdocs/forty-first-battle-map-handpaint-preview.pngdocs/forty-second-battle-map-handpaint-before-after.pngdocs/forty-second-battle-map-handpaint-preview.pngdocs/forty-third-battle-map-handpaint-before-after.pngdocs/forty-third-battle-map-handpaint-preview.pngdocs/forty-fourth-battle-map-handpaint-before-after.pngdocs/forty-fourth-battle-map-handpaint-preview.pngdocs/forty-fifth-battle-map-handpaint-before-after.pngdocs/forty-fifth-battle-map-handpaint-preview.pngdocs/forty-sixth-battle-map-handpaint-before-after.pngdocs/forty-sixth-battle-map-handpaint-preview.pngdocs/forty-seventh-battle-map-handpaint-before-after.pngdocs/forty-seventh-battle-map-handpaint-preview.pngdocs/forty-eighth-battle-map-handpaint-before-after.pngdocs/forty-eighth-battle-map-handpaint-preview.pngdocs/forty-ninth-battle-map-handpaint-before-after.pngdocs/forty-ninth-battle-map-handpaint-preview.pngdocs/fiftieth-battle-map-handpaint-before-after.pngdocs/fiftieth-battle-map-handpaint-preview.png
Browser screenshots are saved per verification run after build/deploy.