Unit tests cover 1024×532 with 3 bots, a single row for 8 bots at
1400 and 1920, and wrapping at 1280. Playwright shots match Tim's
drawing and include mid-arc frames.
Opponents are anchored to the screen edges: 1st left-outer, 2nd
right-outer, 3rd left one step inward, and so on. A side fills its
row horizontally first and only wraps to a new row upward when no
more columns fit. The 960 px cutoff is gone; sides win whenever a
mini fits beside the field, except on truly narrow or portrait
screens (t1131).
Sides mode reserves ARC_TOP_PAD (100 px) between the HUD and the
field, shrinking tiles if needed, so around-the-top arcs have room.
Narrow and mobile layouts are unchanged.
Enemy→player ends at land_col on the field; player→enemy and
enemy→enemy aim at the same column on the target mini. Player↔enemy
paths route around the field (up the outside, across the top) and
never over the interior; enemy→enemy still passes behind. Every
hit is drawn as a grey garbage block, matching what the target
receives; misses keep the sender's colour.
pickGarbageColumn prefers a given open column. Offline and the
server choose land_col when the shot is fired (stored on the shot,
shot_flights and incoming) so the arc and ingest share one value,
including mid-arc joins via age.
Unit tests cover side vs top, alternating L/R stacks, parabola and
scale classification. PHP checks from_id and that a third player
sees shot_flights. Playwright shots cover desktop wide, stacked
rows, desktop narrow and mobile.
Shots follow a parabola: player-to-enemy shrinks to mini size,
enemy-to-player grows from mini to a full tile, enemy-to-enemy
stay small and render in #flights-back. Enemy misses reuse the
existing fade, starting smaller. Late polls join mid-arc via age;
delivery timing is unchanged.
layout() uses MiniLayout, positions #minis.sides absolutely, and
clips #flights-back so enemy-to-enemy arcs pass behind the field.
Offline and online minis share the planned canvas size.