diff tools/build.py @ 10:22b604680c5a

adjusted monster movement to be less uniform
author ark
date 2026-10-19 16:56 +0200
parents 53f015966118
children 7fda634d15ad
line wrap: on
line diff
--- a/tools/build.py	Mon Oct 19 15:55:37 2026 +0200
+++ b/tools/build.py	Mon Oct 19 16:56:38 2026 +0200
@@ -327,9 +327,9 @@
 
 def check_config(cfg):
     """raise ConfigError on missing or malformed settings."""
-    for sec in ("scale", "monster", "animation", "route_preference", "tower", "placement",
-                "economy", "waves", "hearts", "coins", "controls", "art", "debug", "sound",
-                "map"):
+    for sec in ("scale", "monster", "animation", "movement", "route_preference", "tower",
+                "placement", "economy", "waves", "hearts", "coins", "controls", "art", "debug",
+                "sound", "map"):
         if sec not in cfg:
             raise ConfigError(f"section [{sec}] missing")
     for mid, mon in cfg["monster"].items():
@@ -345,6 +345,8 @@
         need(tw, "projectile", str, f"tower.{tid}")
         if "slow" in tw and len(tw["slow"]) != 5:
             raise ConfigError(f"tower.{tid}: slow needs 5 levels")
+    for k in ("speed_variation", "offset", "lean", "wander_step", "fade_in"):
+        need(cfg["movement"], k, float, "movement")
     for k in ("footprint_radius", "max_gap", "min_tower_distance", "edge_distance",
               "snap_radius", "grid_cell"):
         need(cfg["placement"], k, float, "placement")