Draw the board as track, split the site into three pages, and fix curve geometry

Adds SVG board rendering shared by the game and the replay, a splash page with a
shareable replay directory, hover tooltips for reference detail, and makes curves
two-port arcs so sidings and run-arounds can finally be built.
This commit is contained in:
Jesse
2026-08-01 13:35:53 -04:00
parent f00255ce31
commit f52ff0e9ac
21 changed files with 5359 additions and 291 deletions
+9
View File
@@ -0,0 +1,9 @@
/** The splash page. Draws ties on the rule so the line reads as track rather than a border. */
const ties = document.getElementById('ties');
if (ties) {
let out = '';
for (let x = 4; x < 700; x += 9) {
out += `<line class="tie" x1="${x}" y1="6" x2="${x}" y2="19"/>`;
}
ties.innerHTML = out;
}