diff --git a/docs/PVP_CAPTURE.md b/docs/PVP_CAPTURE.md index 9974a0e..9e27d67 100644 --- a/docs/PVP_CAPTURE.md +++ b/docs/PVP_CAPTURE.md @@ -59,10 +59,27 @@ are `tiles`, `ascii`, and `iso`. Every ruleset accepts 2–8 bots in this harnes The default 1280×720 spectator camera anchors on `bot-1`; choose another player with `--focus bot-N`. In the default `--camera action` mode, deaths, treasure pickups, and exits temporarily take focus before the camera returns to that anchor. `--camera focus` disables those cuts. Camera zoom -adjusts to the active pack: it pushes in for close action and pulls back as players spread out. -Portrait viewports begin with a tighter follow crop so 9:16 footage fills the frame. A separate -screen-space roster keeps all 2–8 player names and states legible without stacking labels on one -dungeon tile. +in the tiled and ASCII renderers adjusts to the nearest action cluster around the anchor: it keeps +the closest three players in a portrait composition or four in landscape, then pushes in or pulls +back as that cluster changes. The isometric renderer uses a stable, cover-clamped zoom because its +diagonal projection needs different fit geometry. A short renderer-space movement lead shows where +the focused player is heading, while an upper-frame bias keeps portrait action clear of the +result lower third. The tested 1080×1920 and 1920×1080 tiled frames fill the stage. At match end, a +competitive camera returns to the authoritative winner for a restrained push-in instead of hiding +the playfield behind a centered modal. + +The capture-only grade slightly lowers brightness while restoring contrast and saturation, which +reduces torch and character washout. A separate screen-space roster +keeps all 2–8 player names and states legible without stacking labels on one dungeon tile; the +winner remains highlighted while other rows recede on a competitive final frame, while cooperative +team rows remain equally visible. The footer displays a short deterministic replay ID, not a +signature or independent verification claim. The complete seed and every state hash remain in the +JSON trace. + +`FREE EXHIBITION • NO CASH PRIZES` describes this isolated footage only. It is not a substitute for +campaign review or campaign-level disclosures. Paid-credit, no-cash-out/no-prize, age, jurisdiction, +certification, and platform-required disclosures remain outside the harness output and must be +added and reviewed for each operated product and advertising channel. ## Capture each built-in mode diff --git a/src/scripts/pvp-capture.js b/src/scripts/pvp-capture.js index 4cf3b4e..96a5b56 100644 --- a/src/scripts/pvp-capture.js +++ b/src/scripts/pvp-capture.js @@ -451,7 +451,7 @@ function captureResultSummary(room, players = capturePlayerSnapshot(room)) { const winner = players.find(player => player.id === room.winnerId) || null; const winnerName = String(winner?.name || winner?.id || 'NO ONE').toUpperCase(); const ticks = Number(room.tickCount) || 0; - const detail = `FREE EXHIBITION • ${ticks} TICK${ticks === 1 ? '' : 'S'}`; + const detail = `FREE EXHIBITION • NO CASH PRIZES • ${ticks} TICK${ticks === 1 ? '' : 'S'}`; switch (room.ruleset?.id) { case 'last-alive': { @@ -527,18 +527,19 @@ function capturePageHtml() { body{background:radial-gradient(circle at 50% -20%,rgba(52,123,70,.32),transparent 46%),linear-gradient(#0b0e12,#05070a 62%)} #frame{height:100%;display:grid;grid-template-rows:82px 1fr 52px;padding:18px 26px 16px;gap:10px} header,footer{display:flex;align-items:center;justify-content:space-between;gap:20px} -.eyebrow{color:var(--green);font-size:12px;letter-spacing:.22em}.title{font-size:31px;font-weight:700;letter-spacing:.035em}.title b{color:var(--green)} -#hud{display:flex;gap:7px;align-items:center}#hud span,.badge{border:1px solid #34404d;background:rgba(16,21,27,.9);border-radius:5px;padding:7px 10px;font-size:12px} +.eyebrow{color:var(--green);font-size:13px;letter-spacing:.22em}.title{font-size:34px;font-weight:700;letter-spacing:.035em}.title b{color:var(--green)} +#hud{display:flex;gap:7px;align-items:center}#hud span,.badge{border:1px solid #34404d;background:rgba(16,21,27,.9);border-radius:5px;padding:8px 11px;font-size:14px} .badge{color:#b8f8c2;border-color:#397348}.gold{color:var(--gold)!important} -#stage{position:relative;min-height:0;overflow:hidden;background:#000;border:1px solid #35404c;border-radius:10px;box-shadow:0 24px 80px #000,inset 0 0 70px rgba(0,0,0,.65)} -#stage:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:10;box-shadow:inset 0 0 80px rgba(0,0,0,.58)}#stage canvas{display:block} -#status{color:#d4dbe3}#seed{color:var(--muted);font-size:12px}.live{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 12px var(--green);margin-right:7px} -#roster{position:absolute;z-index:20;right:12px;top:12px;width:184px;display:grid;gap:5px;pointer-events:none} -.roster-row{display:grid;grid-template-columns:7px 1fr auto;align-items:center;gap:7px;min-height:29px;padding:5px 7px;border:1px solid rgba(102,116,134,.58);border-radius:5px;background:rgba(7,10,14,.84);box-shadow:0 3px 14px rgba(0,0,0,.42);font-size:11px;letter-spacing:.04em} -.roster-dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 6px rgba(98,232,117,.7)}.roster-name{overflow:hidden;text-overflow:ellipsis}.roster-state{color:#a9b5c3;font-size:9px;letter-spacing:.09em}.roster-row.out{opacity:.48}.roster-row.done .roster-dot{background:var(--gold);box-shadow:0 0 6px rgba(244,196,93,.7)} -#result{position:absolute;z-index:30;left:50%;top:50%;transform:translate(-50%,-50%);min-width:360px;max-width:82%;padding:22px;text-align:center;border:1px solid var(--gold);border-radius:9px;background:rgba(7,9,12,.94);box-shadow:0 22px 80px #000;opacity:0;transition:opacity .35s}#result.show{opacity:1} -#result-headline{font-size:25px;color:var(--gold);letter-spacing:.04em}#result-detail{margin-top:7px;color:#cbd5df;font-size:13px;letter-spacing:.07em} -@media(max-aspect-ratio:3/4){#frame{grid-template-rows:110px 1fr 70px;padding:24px 18px 22px}.title{font-size:28px}header{align-items:flex-start;flex-direction:column;gap:7px}#hud{width:100%;justify-content:space-between}#roster{width:160px;right:9px;top:9px}.roster-row{min-height:27px;padding:4px 6px}footer{align-items:flex-start;flex-direction:column;justify-content:center;gap:5px}#result{min-width:310px}} +#stage{position:relative;min-height:0;overflow:hidden;background:#000;border:1px solid #43505e;border-radius:10px;box-shadow:0 24px 80px #000,inset 0 0 70px rgba(0,0,0,.65)} +#stage:before{content:"";position:absolute;inset:0;pointer-events:none;z-index:9;background:linear-gradient(180deg,rgba(4,8,12,.04) 45%,rgba(4,7,10,.25))} +#stage:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:10;box-shadow:inset 0 0 70px rgba(0,0,0,.52)}#stage canvas{display:block;filter:brightness(.9) contrast(1.09) saturate(1.12)} +#status{color:#d4dbe3;font-size:14px}#seed{color:var(--muted);font-size:13px}.live{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 12px var(--green);margin-right:7px} +#roster{position:absolute;z-index:20;right:14px;top:14px;width:242px;display:grid;gap:6px;pointer-events:none;transition:opacity .3s} +.roster-row{display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:8px;min-height:36px;padding:7px 9px;border:1px solid rgba(115,132,151,.62);border-radius:6px;background:rgba(7,10,14,.86);box-shadow:0 3px 16px rgba(0,0,0,.46);font-size:14px;letter-spacing:.04em} +.roster-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 7px rgba(98,232,117,.72)}.roster-name{overflow:hidden;text-overflow:ellipsis}.roster-state{color:#bdc7d2;font-size:11px;letter-spacing:.08em}.roster-row.out{opacity:.48}.roster-row.done .roster-dot{background:var(--gold);box-shadow:0 0 7px rgba(244,196,93,.72)}.roster-row.winner{opacity:1;border-color:var(--gold);background:rgba(28,23,10,.92);box-shadow:0 0 24px rgba(244,196,93,.22)} +#result{position:absolute;z-index:30;left:20px;right:20px;bottom:18px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:18px;padding:14px 18px;border:1px solid rgba(244,196,93,.88);border-radius:9px;background:linear-gradient(90deg,rgba(7,9,12,.96),rgba(7,9,12,.86));box-shadow:0 16px 54px rgba(0,0,0,.82);opacity:0;transform:translateY(14px);transition:opacity .35s,transform .35s;pointer-events:none}#result.show{opacity:1;transform:translateY(0)} +#result-headline{font-size:30px;color:var(--gold);letter-spacing:.04em;white-space:nowrap}#result-detail{padding-left:18px;border-left:1px solid rgba(244,196,93,.34);color:#d4dce5;font-size:15px;letter-spacing:.07em}.finale #roster .roster-row:not(.winner){opacity:.24} +@media(max-aspect-ratio:3/4){#frame{grid-template-rows:110px 1fr 70px;padding:24px 18px 22px}.title{font-size:32px}header{align-items:flex-start;flex-direction:column;gap:7px}#hud{width:100%;justify-content:space-between}#hud span,.badge{font-size:13px}#roster{width:230px;right:10px;top:10px}.roster-row{min-height:34px;padding:6px 8px;font-size:13px}.roster-state{font-size:11px}footer{align-items:flex-start;flex-direction:column;justify-content:center;gap:5px}#status{font-size:13px}#seed{font-size:12px}#result{left:14px;right:14px;bottom:14px;display:block;padding:16px 14px;text-align:center}#result-headline{font-size:28px;white-space:normal}#result-detail{margin-top:8px;padding-left:0;border-left:0;font-size:14px}} @@ -549,8 +550,8 @@ header,footer{display:flex;align-items:center;justify-content:space-between;gap: -