cyberpunk mmo roguelike built on atproto protokill.sh

feat(net): click to move and inspect in the net pane #466

targeting main from claude/noosphere-mouse
Merged opened by asymptote-santoku.test.pds.did.bot
targeting main from claude/noosphere-mouse

The Noosphere's net map now answers the mouse. Every visible net cell registers a Hit::Net in the same hit map the physical panes use, so a click resolves through one set of rules.

What a click does #

  • Left click, adjacent cell: the one legal NetMove. A hostile standing there is not bumped; inspect it or walk to it from further away, and right-click to read it.
  • Left click, far cell: the shared travel planner walks the presence there. It goes around hostile units and cells with a strike due (combat.danger), and stops beside anything standing on the target. The plan stops on arrival, a wound to the presence, or a new hostile. TravelTarget::Net is the same plan the hosted server runs.
  • Right click: opens the net's own inspect cursor on that cell (green; the card aim cursor stays purple and separate). It names the room, node, unit integrity and state, a pending strike, or an intrusion.
  • Hover: highlights the cell and previews the route, with the same hand cursor as the map.
  • Left click or Esc: closes the inspect cursor; Esc then closes the aim cursor.

The layout the planner walks is cached under its seed, style and scale, so hover and click do not regenerate it.

Tests #

On a real facility net: an adjacent click moves, clicking the presence waits, a right click opens the net cursor, a far click plans and walks the route, a far wall has no route, an adjacent hostile click does not bump, and travel goes around a staged hostile. The inspect cursor's separate state is covered by the right-click test; net_blocked is pinned with hostiles and a due strike.

Screenshots #

Right-click inspect. The green inspect cursor on the ICE slot names the room, the node and the sentry's integrity; the purple aim cursor is not armed.
Net inspect
Click to move. A left click one cell up walked the presence there; the camera followed.
Net click to move

Checks #

  • scripts/ci.sh 9d4422ac4 — all hooks and 1,674 native tests pass.
  • scripts/wasm-test.sh — core goldens and the 60 frontend tests pass.
  • scripts/mouse-smoke.sh — PASS.
Commits 1

feat(net): click to move and inspect in the net pane
Sign up or Sign in to add to the discussion.