Skip to content

Brighten the yard, add game audio, expand site imagery - #6

Merged
ralyodio merged 1 commit into
mainfrom
feat/audio-and-gallery
Jul 26, 2026
Merged

Brighten the yard, add game audio, expand site imagery#6
ralyodio merged 1 commit into
mainfrom
feat/audio-and-gallery

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Four things from one round of feedback.

Brightness

The yard read as near-black. Ambient fill 2.15 → 4.05, environment 1.4 → 2.9, key 4.2 → 5.4, exposure 1.62 → 2.05, and the vignette eased 2.4 → 1.35 — at that weight the outer third of every frame fell to black, which reads as "dark scene" even when the centre is correctly exposed.

Audio — the game was completely silent

No clips, no audio code. tools/art/audio/generate.py synthesises the V1 set from first principles (nothing sampled, nothing licensed); apps/game/src/audio.ts plays it. 22 clips, 0.31 MB.

  • WAV masters are a build artefact, not committed — exactly reproducible (CLAUDE.md)
  • Repeated sounds get real variations, and the same variant never plays twice in a row
  • Footsteps advance with distance travelled, so they track sprinting/crouching with no state machine; grating sounds different from concrete, which is a real cue someone is on the catwalk
  • Fire cadence comes from fireIntervalMs() in game-core — the same table the server enforces

Two would-be silent failures caught: an AudioContext created before a user gesture starts suspended and discards everything played into it, so unlock() runs on pointer lock; and the fade helper was symmetric, putting a 3 ms ramp directly on the gunshot transient and costing 20% of the peak.

Site imagery

Four new vantages and capture plates on six more pages — 11 pages with imagery, up from 5. Legal, auth and transactional pages are deliberately left alone; a decorative screenshot on a password reset makes it worse.

Quality

Captures now 2560×1440 at WebP q90 (was 1920×1080 q82), and photo mode renders at 8× MSAA and native scale.

Gallery lightbox

Frames are clickable and open a zoomable fullscreen viewer. It's a real modal — focus moves in, Escape closes, Tab is trapped, focus returns to the opener — because WCAG 2.2 AA is a launch gate (PRD §22.6).


Also renamed GreyboxNoticeCaptureNotice and dropped "greybox" from the copy; it was accurate before the art landed and isn't now.

190 tests pass (was 188). Format, lint, typecheck clean; site and game both build.

🤖 Generated with Claude Code

Four things, from one round of feedback.

**Brightness.** The yard read as near-black. Raised ambient fill 2.15 -> 4.05,
environment intensity 1.4 -> 2.9, key 4.2 -> 5.4, exposure 1.62 -> 2.05, and
eased the vignette from 2.4 to 1.35 — at that weight the outer third of every
frame fell away to black, which reads as "dark scene" even when the centre is
correctly exposed.

**Audio.** The game shipped completely silent: no clips, no audio code.
tools/art/audio/generate.py synthesises the whole V1 set from first principles
— nothing sampled, nothing licensed — and apps/game/src/audio.ts plays it.

  - 22 clips, 0.31 MB as MP3. WAV masters are a build artefact and are not
    committed, since they are exactly reproducible (CLAUDE.md).
  - Repeated sounds get real variations (CLAUDE.md) and the same variant never
    plays twice in a row.
  - Footsteps advance with distance travelled, so they track sprinting and
    crouching with no state machine, and grating sounds different from
    concrete — a real cue that someone is on the catwalk.
  - Fire cadence comes from fireIntervalMs() in game-core, the same table the
    server enforces, so the sound cannot drift from the actual rate of fire.

  Two things that would have been silent failures: an AudioContext created
  before a user gesture starts suspended and discards everything played into
  it, so unlock() runs on pointer lock; and the fade helper was symmetric,
  putting a 3 ms ramp directly on the gunshot transient and costing 20% of the
  peak. Fades are now asymmetric.

**Site imagery.** Four new vantages (pipe-rack-run, container-alley,
muster-point, under-the-gantry) and capture plates on downloads,
system-requirements, news, credits, faq and community-guidelines — 11 pages
with imagery, up from 5. Legal, auth and transactional pages are deliberately
left alone; a decorative screenshot on a password reset makes it worse.

**Quality.** Captures are now 2560x1440 at WebP q90, and photo mode renders
with 8x MSAA at native scale. A still is not bound by the frame budget
gameplay is.

Also: gallery frames are clickable, opening a zoomable fullscreen viewer. It
is a real modal — focus moves in, Escape closes, Tab is trapped, focus returns
to the opener — because WCAG 2.2 AA is a launch gate (PRD §22.6) and a div
with an onClick would look identical and be unusable with a keyboard.

Renamed GreyboxNotice -> CaptureNotice and dropped "greybox" from the copy: it
was accurate before the art landed and is not now.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

@ralyodio
ralyodio merged commit 39e1202 into main Jul 26, 2026
6 checks passed
@ralyodio
ralyodio deleted the feat/audio-and-gallery branch July 26, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant