changeset 24:3f2811aebb3d 0.9.0

splash screen buttons, help button, info screen
author ark
date 2026-10-20 15:58 +0200
parents 2f555a54c332
children ecd94cc6bf80
files art/art_sources/more_buttons.jpg art/freeze.png art/help_button.png art/help_info.png art/help_splash.png art/wobbly_logo.png config/game.toml doc/architecture.md doc/art.md doc/balance.md doc/game_design.md doc/roadmap.md game/js/game.js game/js/input.js game/js/projectile.js game/js/render.js game/js/tower.js game/js/ui.js tools/build.py
diffstat 19 files changed, 195 insertions(+), 44 deletions(-) [+]
line wrap: on
line diff
Binary file art/art_sources/more_buttons.jpg has changed
Binary file art/freeze.png has changed
Binary file art/help_button.png has changed
Binary file art/help_info.png has changed
Binary file art/help_splash.png has changed
Binary file art/wobbly_logo.png has changed
--- a/config/game.toml	Tue Oct 20 12:04:42 2026 +0200
+++ b/config/game.toml	Tue Oct 20 15:58:17 2026 +0200
@@ -81,6 +81,7 @@
 idle_bob = 0.02
 hit_radius = 0.4    # share of the monster sprite's smaller side
 death_puff = 0.4    # seconds the death puff shows
+freeze_splash = 0.4 # seconds the t2 freeze splash shows
 
 
 # variation between monsters, so they do not walk in single file
@@ -103,7 +104,8 @@
 # rounded to whole numbers when both ends are whole. cost is the price of
 # building (level 1) or of upgrading to that level. attack_time is the time
 # between attacks, the same at every level (decided). projectile_speed 0
-# means a melee tower: each attack damages every monster in range.
+# means a melee tower: each attack damages every monster in range. damage
+# may be left out for a tower that only slows.
 
 # melee tower. low damage because it often hits multiple monsters.
 [tower.t0]
@@ -123,9 +125,9 @@
 projectile = "p1"
 projectile_speed = 300
 
-# freeze tower, minimal damage
+# freeze tower, no damage. p2 bursts where it lands and slows every
+# monster within splash_radius, about two monsters across.
 [tower.t2]
-damage = [1, 5]
 cost = [20, 40]
 range = [90, 106]
 attack_time = 1.2
@@ -133,6 +135,7 @@
 projectile_speed = 220
 slow = [0.60, 0.30]
 slow_time = 2.0
+splash_radius = 28
 
 # sniper tower. slightly weaker, slower and more expensive than standard tower
 # to balance much higher range
@@ -268,6 +271,22 @@
 map_won = [210, 225]
 game_lost = [172, 230]
 game_won = [373, 383]
+# the logo and help buttons beside the play button on the splash screen:
+# top left corner and height, in pixels of the trimmed splash drawing. proto
+splash_logo = [119, 463, 164]
+splash_help = [896, 463, 164]
+# the email address on the help popup, a tap on it writes a mail: top left
+# corner, width and height, in pixels of the drawing. measured, with a margin
+help_email = [690, 1505, 665, 100]
+
+
+# web page the logo on the splash screen opens in a new tab. empty: the
+# logo does nothing. the address and subject of the mail written from the
+# help popup. empty address: the email on the popup does nothing
+[links]
+logo_url = "https://www.wobblyhead.net"
+email = "info@wobblyhead.net"
+email_subject = "minor monsters"
 
 
 # debug switches, all off by default
--- a/doc/architecture.md	Tue Oct 20 12:04:42 2026 +0200
+++ b/doc/architecture.md	Tue Oct 20 15:58:17 2026 +0200
@@ -308,8 +308,8 @@
   borders where the shapes differ
 - the canvas resolution follows the device pixel ratio, so drawings stay sharp
   on high-resolution screens
-- layout: top bar with coins, hearts, wave, countdown, sound, speed and
-  pause. on a narrow screen the buttons move to a second row under the
+- layout: top bar with coins, hearts, wave, countdown, sound, speed, pause
+  and help. on a narrow screen the buttons move to a second row under the
   counters. the tower shop sits on the right in landscape and at the bottom in portrait
 - buttons are at least 48 css pixels for touch
 
--- a/doc/art.md	Tue Oct 20 12:04:42 2026 +0200
+++ b/doc/art.md	Tue Oct 20 15:58:17 2026 +0200
@@ -43,6 +43,12 @@
     2 variants
 heart.png: heart counter icon
 coin_icon.png: coin counter icon
+freeze.png: t2 freeze splash, drawn where p2 lands
+wobbly_logo.png: logo on the splash screen, left of the play button, links to
+    a web page
+help_splash.png: question mark on the splash screen, right of the play
+    button, opens the help popup
+help_button.png: help button in the top bar, opens the help popup
 
 notes:
     - writing numbers should use digit variants. scale digits to same size in
--- a/doc/balance.md	Tue Oct 20 12:04:42 2026 +0200
+++ b/doc/balance.md	Tue Oct 20 15:58:17 2026 +0200
@@ -134,7 +134,8 @@
 steps, rounded to whole numbers where both ends are whole.
 
 the drawing sheet gives five damage values for t0 and t1, and four for t2 and
-t3. level 5 of t2 and t3 continues the trend (guess). the equal steps change
+t3. level 5 of t3 continues the trend (guess). t2 does no damage (decided);
+it only slows. the equal steps change
 three values from the sheet: t1 level 2 from 7 to 8, t1 level 4 from 17 to 18,
 and t3 level 2 from 5 to 4 (decided).
 
@@ -142,7 +143,7 @@
 |-------|------------------|------|---------------------|--------------|------------------|--------|
 | t0    | 5,10,15,20,25    | 5    | 60,63,66,69,72      | 1.5 s        | none (melee)     | damage, cost: notes; range level 1: decided (was 45); rest: guess |
 | t1    | 3,8,13,18,23     | 10   | 100,104,108,112,116 | 0.7 s        | 300              | damage levels 1 and 5, cost: notes; range: guess |
-| t2    | 1,3,5,7,9        | 20   | 90,94,98,102,106    | 1.2 s        | 220              | damage level 1, cost: notes; rest: guess |
+| t2    | none             | 20   | 90,94,98,102,106    | 1.2 s        | 220              | damage: decided; cost: notes; rest: guess |
 | t3    | 1,4,7,10,13      | 25   | 220,230,240,250,260 | 1.3 s        | 800              | damage level 1: notes; cost: decided (was 40), may go lower; rest: guess |
 
 the cost column is the build cost, level 1.
@@ -153,8 +154,10 @@
   others (decided), t1 faster than t2, t2 faster than t3 (notes)
 - range grows about 4 % per level (decided "slightly", amount guessed)
 - t0 damages every monster in range at once, each attack
-- t2 slow: hit monsters move at 0.60, 0.55, 0.50, 0.45, 0.40 of their speed
-  by level, for 2 s (guess). a new hit restarts the time. slows do not add up;
+- t2 slow: p2 bursts where it lands into a freeze splash of radius 28,
+  about two monsters across (decided, radius guessed). every monster the
+  splash touches moves at 0.60, 0.55, 0.50, 0.45, 0.40 of its speed by
+  level, for 2 s (guess). a new hit restarts the time. slows do not add up;
   the strongest one applies
 - p1, p2, p3 home in on their target. if the target dies first, the
   projectile flies on to the last position and disappears (guess)
@@ -187,7 +190,6 @@
 |-------|---------|---------|---------|---------|---------|
 | t0    | 3.3     | 6.7     | 10.0    | 13.3    | 16.7    |
 | t1    | 4.3     | 11.4    | 18.6    | 25.7    | 32.9    |
-| t2    | 0.8     | 2.5     | 4.2     | 5.8     | 7.5     |
 | t3    | 0.8     | 3.1     | 5.4     | 7.7     | 10.0    |
 
 t3 is meant to be weaker than the other towers; its range lets it reach more
--- a/doc/game_design.md	Tue Oct 20 12:04:42 2026 +0200
+++ b/doc/game_design.md	Tue Oct 20 15:58:17 2026 +0200
@@ -51,8 +51,10 @@
         cost 10
     - t2 shoots projectile p2, turns, slows down monsters
         slower than t1
+        no damage (decided; the sheet gave 1,3,5,7). p2 bursts where it
+        lands into a freeze splash (freeze.png) about two monsters across,
+        and slows every monster in it
         a slowed monster's hp bar turns blue
-        damage: 1,3,5,7
         cost 20
     - t3 is long range sniper tower, turns, shoots p3
         slower than t2
@@ -63,8 +65,8 @@
 - towers have 5 levels: t0-t3 are level 1 (the base), the four drawings in
   each t*p strip are levels 2-5
     the original drawing sheet gives five damage values for t0 (5,10,15,20,25)
-    and t1 (3,7,13,17,23), and four for t2 and t3, as above. level 5 of t2
-    and t3 is guessed in balance.md. the game fills in the levels between
+    and t1 (3,7,13,17,23), and four for t2 and t3, as above. level 5 of t3
+    is guessed in balance.md. the game fills in the levels between
     level 1 and level 5 in equal steps, so some values differ from the sheet
 - t3 is meant to be weaker than the other towers; its range lets it reach
   more targets
@@ -136,7 +138,8 @@
 
 - splash: title "minor monsters", byline "By M.A. and J.A. Juszczyk" and a
   play button, drawn over the first map with the game paused. the play button
-  also starts the sound
+  also starts the sound. left of the play button a logo opens a web page in a
+  new tab, right of it a question mark opens the help popup
 - map won, on maps before the last: one button, next, which starts the next
   map
 - game won, after the last map: one button, restart, which goes back to the
@@ -155,6 +158,7 @@
   early
 - game speed 1x, 2x and 4x (decided)
 - sound on and off, kept in the browser
+- help, which opens the help popup
 - input via pointer events, so mouse and touch work the same. no part of the
   game depends on mouse hover
 
--- a/doc/roadmap.md	Tue Oct 20 12:04:42 2026 +0200
+++ b/doc/roadmap.md	Tue Oct 20 15:58:17 2026 +0200
@@ -166,6 +166,11 @@
   drawing; [art.screen] in game.toml holds where, measured by matching the
   images. its tap area is the button image. it pulses by 4 % over 1.2 s;
   under the mouse it is 8 % larger with a shadow
+- splash screen logo and question mark: placed by their top left corner and
+  height in [art.screen], and pulse like the play button. the logo opens
+  logo_url from [links] in a new tab when the pointer is let go over it, as
+  tablets allow a new tab only then. the question mark and the top bar help
+  button have no action until the help popup exists
 - a break starts when the last monster of the wave has spawned, not when
   all of them are gone. monsters of the wave may still be on the map during
   the break. during a break the wave counter shows the next wave
@@ -189,6 +194,11 @@
   placement cells give one side, most of the rest two, a few three
 - t2 slow: each running slow keeps its own time, and the strongest one
   applies. a slowed monster also hops slower, by the same factor
+- t2 freeze splash: p2 bursts where it lands, also when its target died on
+  the way. it slows every monster whose hit area the splash touches. the
+  splash is drawn under the monsters, as freeze.png across its diameter at
+  85 % opacity, and grows and fades like a death puff over 0.4 s
+  (freeze_splash in [animation])
 - tower menu: tapping a built tower shows the tower_popup bubble, 168 css
   pixels wide, above it, or below it when there is no room above, kept
   inside the map. upgrade and sell sit in it side by side, each with its
@@ -224,8 +234,9 @@
   counter keeps the width of a usual largest value (3, 2 and 5
   characters), so the next one does not move. when the counters at those
   widths and the buttons, early start included, do not fit side by side
-  (below about 750 css pixels), the buttons get a second row under the
-  counters, right-aligned as before. pause shows pause_button
+  (below about 800 css pixels), the buttons get a second row under the
+  counters, right-aligned as before. the buttons run help, pause, speed,
+  sound and early start from the right. pause shows pause_button
   while the game runs and play_button while it is paused. speed shows the
   drawing of the current speed; debug speeds show their number. the early
   start button shows the countdown on next_wave, without the bonus. the top
--- a/game/js/game.js	Tue Oct 20 12:04:42 2026 +0200
+++ b/game/js/game.js	Tue Oct 20 15:58:17 2026 +0200
@@ -22,6 +22,7 @@
         this.projectiles = [];
         this.flights = [];      // coins flying to the counter
         this.puffs = [];        // death puffs, {x, y, boss, t}
+        this.freezes = [];      // t2 freeze splashes, {x, y, r, t}
         this.waves = new MM.Waves(mapIndex, MM.util.clamp(firstWave - 1, 0, mc.waves.length - 1),
                                   this.random);
         this.time = 0;
@@ -30,6 +31,8 @@
         this.speedIndex = 0;
         this.result = null;     // "won" or "lost"
         this.splash = false;    // splash screen shown over the paused map
+        this.help = false;      // help popup shown over everything
+        this.helpResume = false; // the game ran when the help popup opened
         // player selection: shop tower type, its snapped preview, a built tower
         this.shop = null;
         this.preview = null;
@@ -57,6 +60,19 @@
         }
     };
 
+    // the help popup pauses the game while it is shown. closing it lets a
+    // game that was running before go on
+    Game.prototype.openHelp = function () {
+        this.help = true;
+        this.helpResume = !this.paused;
+        if (!this.paused) this.togglePause();
+    };
+
+    Game.prototype.closeHelp = function () {
+        this.help = false;
+        if (this.helpResume) this.togglePause();
+    };
+
     Game.prototype.canAfford = function (cost) {
         return dbg.unlimited_coins || this.coins >= cost;
     };
@@ -85,6 +101,8 @@
         this.flights.forEach(function (f) { f.t += dt; });
         this.puffs.forEach(function (p) { p.t += dt; });
         this.puffs = this.puffs.filter(function (p) { return p.t < cfg.animation.death_puff; });
+        this.freezes.forEach(function (f) { f.t += dt; });
+        this.freezes = this.freezes.filter(function (f) { return f.t < cfg.animation.freeze_splash; });
         var flying = this.flights.length;
         this.flights = this.flights.filter(function (f) { return f.t < cfg.coins.flight_time; });
         if (this.flights.length < flying) MM.audio.play("coins_arrive");
@@ -101,6 +119,7 @@
         if (this.result) {
             this.flights = [];
             this.puffs = [];
+            this.freezes = [];
         }
     };
 
@@ -113,6 +132,17 @@
         }
     };
 
+    // a freeze splash of radius r at x, y: slows every monster whose hit
+    // area it touches to factor of its speed for time seconds
+    Game.prototype.freeze = function (x, y, r, factor, time) {
+        this.freezes.push({ x: x, y: y, r: r, t: 0 });
+        this.monsters.forEach(function (m) {
+            if (m.alive && Math.hypot(m.x - x, m.y - y) <= r + m.hitRadius) {
+                MM.monster.slow(m, factor, time);
+            }
+        });
+    };
+
     Game.prototype.damage = function (m, amount) {
         if (!m.alive) return;
         m.hp -= amount;
--- a/game/js/input.js	Tue Oct 20 12:04:42 2026 +0200
+++ b/game/js/input.js	Tue Oct 20 15:58:17 2026 +0200
@@ -80,9 +80,11 @@
         return { x: mx, y: my };
     }
 
-    // a press at css position x, y. buttons and tower selection act at once.
-    // a press on the map while a shop tower is chosen returns the drag that
-    // places the preview:
+    // a press at css position x, y. buttons and tower selection act at once,
+    // apart from the logo and the email address on the help popup: tablets
+    // open a new tab only when the finger is lifted, so the press on either
+    // returns {game, button} and the release acts. a press on the map while a shop tower is chosen returns
+    // the drag that places the preview:
     //   game      the game it belongs to
     //   onPreview the press was on the preview; it builds on release unless
     //             the pointer moved further than DRAG_SLOP
@@ -104,10 +106,13 @@
             // the tower menu closes it
             if (b.id !== "sell") game.sellArmed = false;
             if (b.id !== "sell" && b.id !== "upgrade") game.selected = null;
+            if (b.id === "logo" || b.id === "email") return { game: game, button: b.id };
             if (b.id === "play") app.play();
             else if (b.id === "next") app.next();
             else if (b.id === "retry") app.retry();
             else if (b.id === "restart") app.restart();
+            else if (b.id === "help") game.openHelp();
+            else if (b.id === "close_help") game.closeHelp();
             else if (b.id === "pause") game.togglePause();
             else if (b.id === "speed") game.speedIndex = (game.speedIndex + 1) % game.speeds.length;
             else if (b.id === "early") game.startEarly();
@@ -141,7 +146,7 @@
     // the pointer of a drag moved to css position x, y
     function move(app, d, x, y) {
         var game = app.game();
-        if (game !== d.game || game.result || !game.shop) return;
+        if (d.button || game !== d.game || game.result || !game.shop) return;
         if (!d.moved && Math.hypot(x - d.sx, y - d.sy) <= DRAG_SLOP) {
             // a press on the preview stays a tap until it moves far enough
             if (d.onPreview) return;
@@ -152,10 +157,22 @@
         if (m && game.movePreview(m.x + d.dx, m.y + d.dy)) d.found = true;
     }
 
-    // the pointer of a drag was released at css position x, y. a tap on the
-    // preview builds; a drag that never found a legal position is refused
+    // the pointer of a drag was released at css position x, y. the logo
+    // opens its web page and the email address a new mail when the pointer
+    // is still on it. a tap on the preview builds; a drag that never found a
+    // legal position is refused
     function release(app, d, x, y) {
         var game = app.game(), L = app.layout();
+        if (d.button) {
+            var b = MM.ui.hit(game, L, x, y), links = MM.config.links;
+            if (!b || b.id !== d.button) return;
+            if (b.id === "logo" && links.logo_url) window.open(links.logo_url, "_blank", "noopener");
+            if (b.id === "email") {
+                window.location.href = "mailto:" + links.email + "?subject=" +
+                    encodeURIComponent(links.email_subject);
+            }
+            return;
+        }
         if (game !== d.game || game.result || game.paused) return;
         var ok = d.onPreview && !d.moved ? game.build() : d.found;
         if (ok) return;
--- a/game/js/projectile.js	Tue Oct 20 12:04:42 2026 +0200
+++ b/game/js/projectile.js	Tue Oct 20 15:58:17 2026 +0200
@@ -1,5 +1,5 @@
-// projectiles: fly towards their target and damage it on arrival, p2 also
-// slows it
+// projectiles: fly towards their target and damage it on arrival. p2 does
+// no damage; it bursts where it lands and slows every monster nearby
 
 window.MM = window.MM || {};
 
@@ -19,13 +19,14 @@
             damage: damage,
             slow: def.slow ? def.slow[tower.level - 1] : 0,
             slowTime: def.slow_time,
+            splash: def.splash_radius || 0,
             angle: Math.atan2(target.y - tower.y, target.x - tower.x),
             done: false
         };
     }
 
     // home in on the target. if it died first, fly on to its last position
-    // and disappear there without damage.
+    // and disappear there without damage; a splash still bursts there.
     function update(p, game, dt) {
         var t = p.target;
         if (t && t.alive) {
@@ -39,9 +40,11 @@
         var step = p.speed * dt;
         var reach = t ? Math.max(step, t.hitRadius) : step;
         if (d <= reach) {
-            if (t) {
+            if (p.splash) {
+                game.freeze(p.tx, p.ty, p.splash, p.slow, p.slowTime);
+            } else if (t) {
                 if (p.slow) MM.monster.slow(t, p.slow, p.slowTime);
-                game.damage(t, p.damage);
+                if (p.damage) game.damage(t, p.damage);
             }
             p.done = true;
             return;
--- a/game/js/render.js	Tue Oct 20 12:04:42 2026 +0200
+++ b/game/js/render.js	Tue Oct 20 15:58:17 2026 +0200
@@ -120,6 +120,18 @@
         ctx.globalAlpha = 1;
     }
 
+    // freeze splash: drawn across the splash diameter. it grows from 60 % to
+    // full size over the first half of its time and fades out over the
+    // second half
+    function drawFreeze(ctx, f) {
+        var u = f.t / cfg.animation.freeze_splash;
+        var s = cfg.sprites.freeze;
+        var k = MM.util.lerp(0.6, 1, MM.util.easeOut(Math.min(1, u * 2)));
+        ctx.globalAlpha = 0.85 * (u < 0.5 ? 1 : 2 - 2 * u);
+        A.draw(ctx, "freeze", f.x, f.y, 2 * f.r / Math.max(s[0], s[1]), null, k, k);
+        ctx.globalAlpha = 1;
+    }
+
     // draw the map area. L is the layout from ui.js, view holds the canvas
     // pixel ratio, wall clock and tap feedback.
     function draw(ctx, game, L, view) {
@@ -149,6 +161,8 @@
             drawTower(ctx, pv, MM.util.lerp(0.45, 0.8, k), MM.util.lerp(1, 1.08, k));
         }
 
+        // the splashes lie on the ground, under the monsters
+        game.freezes.forEach(function (f) { drawFreeze(ctx, f); });
         game.monsters.slice().sort(function (a, b) { return a.y - b.y; })
             .forEach(function (m) { drawMonster(ctx, m, game.time); });
         game.puffs.forEach(function (p) { drawPuff(ctx, p); });
@@ -156,6 +170,9 @@
             game.monsters.forEach(function (m) {
                 circle(ctx, m.x, m.y, m.hitRadius, null, "rgba(255, 0, 0, 0.8)", 1 / s);
             });
+            game.freezes.forEach(function (f) {
+                circle(ctx, f.x, f.y, f.r, null, "rgba(0, 90, 255, 0.8)", 1 / s);
+            });
         }
 
         game.projectiles.forEach(function (p) {
--- a/game/js/tower.js	Tue Oct 20 12:04:42 2026 +0200
+++ b/game/js/tower.js	Tue Oct 20 15:58:17 2026 +0200
@@ -45,8 +45,9 @@
         return t.def.range[t.level - 1];
     }
 
+    // 0 for a tower that only slows
     function damage(t) {
-        return t.def.damage[t.level - 1];
+        return t.def.damage ? t.def.damage[t.level - 1] : 0;
     }
 
     function inRange(t, m) {
--- a/game/js/ui.js	Tue Oct 20 12:04:42 2026 +0200
+++ b/game/js/ui.js	Tue Oct 20 15:58:17 2026 +0200
@@ -1,5 +1,5 @@
 // screen layout, top bar, tower shop, tower menu, splash and end screens,
-// drawn from the supplied icons and drawings (art.md). numbers use the
+// help popup, drawn from the supplied icons and drawings (art.md). numbers use the
 // hand-drawn digits.
 
 window.MM = window.MM || {};
@@ -34,6 +34,12 @@
         game_lost: { image: "game_lost_button", id: "retry" },
         game_won: { image: "game_won_button", id: "restart" }
     };
+    // the extra buttons of the splash screen beside the play button, placed
+    // by [art.screen] in the config
+    var SPLASH_EXTRA = [
+        { image: "wobbly_logo", id: "logo", at: "splash_logo" },
+        { image: "help_splash", id: "help", at: "splash_help" }
+    ];
 
     // digit variants from the sprite table: character -> sprite names
     var DIGITS = {};
@@ -66,7 +72,7 @@
     // width of the top bar buttons, the early start button included
     function buttonsWidth() {
         var s = cfg.sprites.next_wave;
-        return 3 * (BUTTON + 8) + BUTTON * s[0] / s[1];
+        return 4 * (BUTTON + 8) + BUTTON * s[0] / s[1];
     }
 
     // positions of everything on screen for a window of w x h css pixels.
@@ -95,18 +101,49 @@
 
     // the screen shown over the map, or null during play
     function screenName(game) {
+        if (game.help) return "help_info";
         if (game.splash) return "splash";
         if (game.result === "lost") return "game_lost";
         if (game.result) return game.lastMap() ? "game_won" : "map_won";
         return null;
     }
 
-    // the drawing of a screen centred in the window, and its button
+    // the help popup centred in the window, scaled on its own to fit 96 %
+    // of the window, at most 1. its buttons are the email address, when
+    // there is one, and the whole window, which closes the popup. they are
+    // not drawn
+    function helpRects(L) {
+        var s = cfg.sprites.help_info, e = cfg.art.screen.help_email;
+        var k = Math.min(1, 0.96 * L.w / s[0], 0.96 * L.h / s[1]);
+        var p = { x: (L.w - s[0] * k) / 2, y: (L.h - s[1] * k) / 2, w: s[0] * k, h: s[1] * k };
+        var list = [];
+        if (cfg.links.email) {
+            list.push({ id: "email", x: p.x + e[0] * k, y: p.y + e[1] * k, w: e[2] * k, h: e[3] * k });
+        }
+        list.push({ id: "close_help", x: 0, y: 0, w: L.w, h: L.h });
+        return { panel: p, buttons: list };
+    }
+
+    // the drawing of a screen centred in the window, and its buttons: the
+    // screen's own button, and on the splash screen the extra buttons. each
+    // button is {id, image, screen, x, y, w, h}
     function screenRects(name, L) {
+        if (name === "help_info") return helpRects(L);
         var k = L.screen, s = cfg.sprites[name];
         var bs = cfg.sprites[SCREENS[name].image], at = cfg.art.screen[name];
         var p = { x: (L.w - s[0] * k) / 2, y: (L.h - s[1] * k) / 2, w: s[0] * k, h: s[1] * k };
-        return { panel: p, button: { x: p.x + at[0] * k, y: p.y + at[1] * k, w: bs[0] * k, h: bs[1] * k } };
+        var list = [{ id: SCREENS[name].id, image: SCREENS[name].image, screen: name,
+                      x: p.x + at[0] * k, y: p.y + at[1] * k, w: bs[0] * k, h: bs[1] * k }];
+        if (name === "splash") {
+            // these are placed by height; the width follows the drawing
+            SPLASH_EXTRA.forEach(function (e) {
+                var es = cfg.sprites[e.image], ea = cfg.art.screen[e.at];
+                var h = ea[2] * k;
+                list.push({ id: e.id, image: e.image, screen: name,
+                            x: p.x + ea[0] * k, y: p.y + ea[1] * k, w: h * es[0] / es[1], h: h });
+            });
+        }
+        return { panel: p, buttons: list };
     }
 
     // the tower menu: a bubble above the selected tower, or below it when
@@ -135,16 +172,10 @@
     function buttons(game, L) {
         var out = [];
         var name = screenName(game);
-        if (name) {
-            var b = screenRects(name, L).button;
-            b.id = SCREENS[name].id;
-            b.screen = name;
-            out.push(b);
-            return out;
-        }
+        if (name) return screenRects(name, L).buttons;
         // top bar, right to left
         var y = L.buttonRow + (TOP - BUTTON) / 2, x = L.w - 8;
-        ["pause", "speed", "sound"].forEach(function (id) {
+        ["help", "pause", "speed", "sound"].forEach(function (id) {
             x -= BUTTON;
             out.push({ id: id, x: x, y: y, w: BUTTON, h: BUTTON });
             x -= 8;
@@ -263,7 +294,7 @@
             ctx.shadowBlur = 12;
             ctx.shadowOffsetY = 3;
         }
-        ctx.drawImage(A.img(SCREENS[b.screen].image), cx - w / 2, cy - h / 2, w, h);
+        ctx.drawImage(A.img(b.image), cx - w / 2, cy - h / 2, w, h);
         ctx.restore();
     }
 
@@ -271,6 +302,8 @@
         var cx = b.x + b.w / 2, cy = b.y + b.h / 2;
         if (b.screen) {
             screenButton(ctx, b, view);
+        } else if (b.id === "help") {
+            fit(ctx, "help_button", cx, cy, b.w, b.h);
         } else if (b.id === "pause") {
             // shows what a tap does: pause while running, play while paused
             fit(ctx, game.paused ? "play_button" : "pause_button", cx, cy, b.w, b.h);
@@ -355,7 +388,10 @@
             ctx.fillStyle = game.splash ? "rgba(246, 241, 230, 0.55)" : "rgba(40, 35, 30, 0.45)";
             ctx.fillRect(0, 0, L.w, L.h);
             var p = screenRects(screen, L).panel;
+            // the help drawing is shrunk a lot on small screens
+            ctx.imageSmoothingQuality = "high";
             ctx.drawImage(A.img(screen), p.x, p.y, p.w, p.h);
+            ctx.imageSmoothingQuality = "low";
         } else if (game.selected) {
             var bub = list[list.length - 1].bubble;
             ctx.drawImage(A.img("tower_popup"), bub.x, bub.y, bub.w, bub.h);
--- a/tools/build.py	Tue Oct 20 12:04:42 2026 +0200
+++ b/tools/build.py	Tue Oct 20 15:58:17 2026 +0200
@@ -59,7 +59,8 @@
               "shop_bubble", "shop_bubble_dark", "shop_bubble_dark2", "tower_popup",
               "upgrade_button", "sell_button", "monster_death", "boss_death",
               "splash", "splash_play", "map_won", "map_won_button",
-              "game_lost", "game_lost_button", "game_won", "game_won_button"])
+              "game_lost", "game_lost_button", "game_won", "game_won_button",
+              "wobbly_logo", "help_splash", "help_button", "help_info", "freeze"])
 # hp bar variants (art.md): the empty part is a darkened copy, the bar of a
 # slowed monster has its colour set to this hue in degrees
 BAR_DARKEN = 0.35
@@ -312,7 +313,7 @@
     """raise ConfigError on missing or malformed settings."""
     for sec in ("scale", "monster", "animation", "movement", "route_preference", "tower",
                 "placement", "waves", "hearts", "coins", "controls", "art", "debug",
-                "sound", "map"):
+                "sound", "links", "map"):
         if sec not in cfg:
             raise ConfigError(f"section [{sec}] missing")
     for mid, mon in cfg["monster"].items():
@@ -320,7 +321,7 @@
             need(mon, k, float, f"monster.{mid}")
     for tid, tw in cfg["tower"].items():
         for k in TOWER_BY_LEVEL:
-            if k == "slow" and k not in tw:
+            if k in ("slow", "damage") and k not in tw:
                 continue
             v = need(tw, k, list, f"tower.{tid}")
             if len(v) != 2 or not all(isinstance(x, (int, float)) and not isinstance(x, bool)
@@ -330,6 +331,10 @@
         for k in ("attack_time", "projectile_speed"):
             need(tw, k, float, f"tower.{tid}")
         need(tw, "projectile", str, f"tower.{tid}")
+        if "splash_radius" in tw:
+            need(tw, "splash_radius", float, f"tower.{tid}")
+    for k in ("logo_url", "email", "email_subject"):
+        need(cfg["links"], k, str, "links")
     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",