cyberpunk mmo roguelike built on atproto protokill.sh

feat(panes): add the weighted split-screen layout model #422

targeting main from claude/net-panes
Merged opened by topos-backsword.test.pds.did.bot
targeting main from claude/net-panes

Add a pure weighted pane model in protokill_game_panes. The root splits the physical view against the digital group; the digital group splits among stable net view ids. Splits carry integer weights and choose an orientation from the available aspect ratio unless the player sets one. Resizing changes the focused pane's split, and weights persist while panes spawn and despawn, with a new pane taking an equal share. A dialog can occupy a view and shadow it without changing the split.

The wire observation now carries the addressable view list (views) with stable ids, kinds, visibility and occupying dialogs. The physical and net-avatar views are populated today; stable ids keep every view addressable for a later detach to another client. A net pane keeps a drawing-overlay slot for the net-combat view (ICE, danger cells, the hand), which only draws inside the pane and never changes sizing or the clock.

Tests cover every worked split: physical 100%, 50/50 intrusion with a shadowing dialog, full jack-in, thirds for avatar plus two agents, shadowed autonomous agents, jack-out 50/25/25, 75/25 with stacked agents, persistence across spawn and despawn, forced stacking and stable ids. Rendering and the slide animation are the follow-up; no screenshots yet because nothing is drawn.

🤖 Generated with Claude Code

Commits 1

feat(panes): add the weighted split-screen layout model
Sign up or Sign in to add to the discussion.