seriesoftubes/src/game/96-map
Frederic Jung 7f4fdf6043
WebGL map: join each line's segments, and draw a link being dragged out under the cities
A see-through line on the card was one round-ended quad per segment, so
where two met it was blended twice: the selected tube's halo showed a
darker blob at every point, and the cables a notch at every corner. Each
segment now knows its neighbours' directions and keeps only its side of
the corner's bisector, as the 2D canvas strokes a path once.

The link being dragged out was painted on the overlay, above the cities
and their labels; it now goes to the card, under them, as in 2D, and its
price label is a picture like the others.

Auto after Always 2D, when the browser will not give the context back,
gives the card up instead of waiting for it all session. Firefox reads
the card's name from RENDERER, without the extension it warns about.
2026-11-05 11:15:05 +01:00
..
10-canvas.js Settings: one Diagnostic info readout for the screen, the map's drawing and its speed 2026-11-04 22:37:15 +01:00
20-land-and-clouds.js Faster routing and map: finished flows leave the rank loop, flows keep their exit table, lazy exit labels, off-screen links culled by box 2026-11-01 13:51:25 +01:00
30-settings.js Settings: say whether the card can draw the map without setting it up 2026-11-05 00:21:35 +01:00
40-level-of-detail.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
50-link-geometry.js Draw the map with WebGL2 by default, with the 2D canvas as fallback 2026-11-04 22:37:12 +01:00
55-link-look.js WebGL map: join each line's segments, and draw a link being dragged out under the cities 2026-11-05 11:15:05 +01:00
56-webgl.js WebGL map: join each line's segments, and draw a link being dragged out under the cities 2026-11-05 11:15:05 +01:00
57-webgl-background.js WebGL map: join each line's segments, and draw a link being dragged out under the cities 2026-11-05 11:15:05 +01:00
58-webgl-links.js WebGL map: join each line's segments, and draw a link being dragged out under the cities 2026-11-05 11:15:05 +01:00
59-gl-sprites.js WebGL map: keep each picture in a clear border in the atlas 2026-11-05 00:59:38 +01:00
60-draw.js WebGL map: join each line's segments, and draw a link being dragged out under the cities 2026-11-05 11:15:05 +01:00
70-world-layer.js 2D map: keep the land picture on the graphics card in Firefox on a computer 2026-11-04 22:37:15 +01:00
75-city-size.js Map: cities show their size, and crowded small ones step back to a dot 2026-10-31 11:36:48 +01:00
80-cities.js WebGL map: keep the pictures' keys, the waves and the clouds out of the garbage 2026-11-04 22:37:14 +01:00
85-puzzle-cities.js Puzzles on phones: three goals in plain words with Show me, the problem marked on the map, a sheet that starts small, and a quieter map 2026-11-04 21:48:21 +01:00
87-chaos-monkey.js Badges: Met the Backhoe becomes Met the Chaos Monkey 2026-10-30 11:44:22 +01:00
88-cable-ships.js WebGL map: keep the cities' pictures while the zoom moves, paint them sharp once it rests 2026-11-04 22:37:13 +01:00
90-input.js Zoom in twice as far; ships at anchor keep clear of their port 2026-11-04 11:54:31 +00:00
95-clicks.js Draw the map with WebGL2 by default, with the 2D canvas as fallback 2026-11-04 22:37:12 +01:00
97-diagnostics.js Diagnostic info: say how often the map was drawn, and drop a key no release had 2026-11-05 00:21:36 +01:00