diff doc/architecture.md @ 9:53f015966118

map, path, tower placement adjustments
author ark
date 2026-10-19 15:55 +0200
parents 2c4fed8baed9
children 22b604680c5a
line wrap: on
line diff
--- a/doc/architecture.md	Mon Oct 19 13:37:52 2026 +0200
+++ b/doc/architecture.md	Mon Oct 19 15:55:37 2026 +0200
@@ -110,12 +110,13 @@
    so on. see art.md
 3. maps: copy the map images, possibly converted to a smaller format
 4. masks: for each map
-    - classify pixels as path, entrance, exit or free, using colour
-      thresholds (the mask edges are soft)
-    - compute the distance from every free pixel to the nearest path pixel
+    - classify pixels as path, entrance, exit or free by their exact colour.
+      masks must have hard edges: a pixel that is neither fully transparent
+      nor opaque pure red, blue or green stops the build (art.md)
+    - extract routes, see below
     - write a placement grid: cells where a tower footprint fits next to the
-      path, within the limits in balance.md
-    - extract routes, see below
+      road, within the limits in balance.md. the red path in the mask is the
+      centre line of the road; the road's half width is set per map
 5. sounds: embed art/sounds/*.mp3 as base64 in game/data/sounds.js,
    grouped by event
 6. config: read config/game.toml, check it, write game/data/config.js