wobblyhead hg > minor_monsters
diff tools/build.py @ 19:3a831478eda4
adjusted tower pivot and angle definitions to better match scribbled assets
| author | ark |
|---|---|
| date | 2026-10-20 00:36 +0200 |
| parents | fe680946164b |
| children | ad1b478fc4dc |
line wrap: on
line diff
--- a/tools/build.py Tue Oct 20 00:14:24 2026 +0200 +++ b/tools/build.py Tue Oct 20 00:36:53 2026 +0200 @@ -509,7 +509,7 @@ def step_previews(cfg, maps, force, changed): outputs = [PREVIEW / f"map{m}.png" for m in range(MAPS)] + [PREVIEW / "towers.png"] - # the tower sheet shows the pivots, footprint and sprite scale from game.toml + # the tower sheet shows the angles, pivots, footprint and sprite scale from game.toml if not changed and not stale([CONFIG / "game.toml"], outputs, force): print("previews: up to date") return @@ -518,7 +518,8 @@ preview.map_preview(ART / f"map{m}.png", mp).save(PREVIEW / f"map{m}.png") if len(mp["routes"]) > 1: preview.route_sheet(ART / f"map{m}.png", mp).save(PREVIEW / f"map{m}_routes.png") - preview.tower_sheet(ASSETS, cfg["art"]["pivot"], cfg["placement"]["footprint_radius"], + preview.tower_sheet(ASSETS, cfg["art"]["angle"], cfg["art"]["pivot"], + cfg["placement"]["footprint_radius"], cfg["scale"]["sprite"]).save(PREVIEW / "towers.png") print(f"previews: wrote {PREVIEW.relative_to(ROOT)}/")
