A11 Map, minimap and tide forecast #51

Closed
opened 2026-11-09 05:28:46 +00:00 by claude · 1 comment
Owner

Depends on: A9, M2

A chart-style island map generated from the seed, with contour lines, POI names, the drop route, teammates, and a preview of the land the next tide will flood.

Acceptance

  • Flood preview matches the simulation at each phase, verified by test.
  • The map works during the drop and in play.
**Depends on:** A9, M2 A chart-style island map generated from the seed, with contour lines, POI names, the drop route, teammates, and a preview of the land the next tide will flood. **Acceptance** - Flood preview matches the simulation at each phase, verified by test. - The map works during the drop and in play.
claude added this to the v0.6 Art, Audio and UI milestone 2026-11-09 05:28:46 +00:00
claude added the priority/hightype/feature labels 2026-11-09 05:28:46 +00:00
claude added this to the Tidewall v1.0 project 2026-11-09 15:00:08 +00:00
eric closed this issue 2026-11-13 16:46:39 +00:00
Author
Owner

Done in 8505216.

What changed

  • ChartMap draws the island as a nautical chart: paper land with ink contours every 5 m (heavier every 25 m), an inked coastline, the sea by depth, place names, the barge's route (dashed) and the player's arrow. Land the coming tide will flood is hatched; land the sea has already taken is washed with the sea. A legend gives the level ("Hatched: floods at the next tide (to 18 m)").
  • Full chart on M (a new rebindable "Chart" action); minimap (240 m around the player, north up) top left during the drop and in play.
  • Flood.forecast(level, structures) spreads a copy of the client's own flood to the coming level with the breakwaters standing now, so the forecast follows building and breaches. It changes nothing in the real flood.
  • PlaceNames names every POI from the match seed with Tidewall's own coastal words (e.g. "Tern Chapel", "Grey Seal Landing"), the same for every player.
  • Teammates: ChartMap.mates is drawn as hollow marks, but solo matches have none to show until duos (M7).

Tests (make check passes: 554 tests)

  • test/sim/test_tide_forecast.gd: on a real island (seed 11), the forecast made during each phase's hold matches the simulation's flooded cells exactly after that phase's rise, for all 7 phases, and forecasting leaves the flood unchanged. Behind a breakwater ring it says the ring holds at 3 m, spills at 9 m, and floods inside once the ring is removed, each matching the simulation.
  • test/client/test_chart_map.gd: names are stable per seed and fit their kind; the chart has sea, land and coastline; the overlay hatches exactly the forecast cells not already flooded; and in a real offline session the minimap shows during the drop with the route on the chart, M opens the full chart with the player marked where they are, and M closes it.

Captures (make chart-captures, opened and checked): seed 2 before the first tide (the whole shore hatched, to 8 m) and after it (the taken shore washed blue, the next band to 18 m hatched).

Cost: the chart's paper takes about 270 ms to draw once per match (headless timing). The forecast overlay redraws at most once a second, and only when something it depends on changed. Frame cost on real hardware isn't measured (R6/H1).

— tidewall-build

Done in 8505216. **What changed** - `ChartMap` draws the island as a nautical chart: paper land with ink contours every 5 m (heavier every 25 m), an inked coastline, the sea by depth, place names, the barge's route (dashed) and the player's arrow. Land the coming tide will flood is hatched; land the sea has already taken is washed with the sea. A legend gives the level ("Hatched: floods at the next tide (to 18 m)"). - Full chart on M (a new rebindable "Chart" action); minimap (240 m around the player, north up) top left during the drop and in play. - `Flood.forecast(level, structures)` spreads a copy of the client's own flood to the coming level with the breakwaters standing now, so the forecast follows building and breaches. It changes nothing in the real flood. - `PlaceNames` names every POI from the match seed with Tidewall's own coastal words (e.g. "Tern Chapel", "Grey Seal Landing"), the same for every player. - Teammates: `ChartMap.mates` is drawn as hollow marks, but solo matches have none to show until duos (M7). **Tests** (`make check` passes: 554 tests) - `test/sim/test_tide_forecast.gd`: on a real island (seed 11), the forecast made during each phase's hold matches the simulation's flooded cells exactly after that phase's rise, for all 7 phases, and forecasting leaves the flood unchanged. Behind a breakwater ring it says the ring holds at 3 m, spills at 9 m, and floods inside once the ring is removed, each matching the simulation. - `test/client/test_chart_map.gd`: names are stable per seed and fit their kind; the chart has sea, land and coastline; the overlay hatches exactly the forecast cells not already flooded; and in a real offline session the minimap shows during the drop with the route on the chart, M opens the full chart with the player marked where they are, and M closes it. **Captures** (`make chart-captures`, opened and checked): seed 2 before the first tide (the whole shore hatched, to 8 m) and after it (the taken shore washed blue, the next band to 18 m hatched). **Cost:** the chart's paper takes about 270 ms to draw once per match (headless timing). The forecast overlay redraws at most once a second, and only when something it depends on changed. Frame cost on real hardware isn't measured (R6/H1). — tidewall-build
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: claude/tidewall#51