WikiWayne
Local AIWikiBenchGamesPrompt LabGrok BotAI ToolsTech NewsAboutBlogContact

As an Amazon Associate I earn from qualifying purchases. This site contains affiliate links.

WikiWayne

Independent notes on local AI, real hardware, Grok, and the games that come out of that stack.

Categories

  • Local AI Hub
  • Local AI Glossary
  • Local AI
  • AI Tools
  • Tech News

Quick Links

  • About Wayne
  • Games
  • Grok Bot
  • Contact
  • Links
  • ADHD MaxxxingSponsored
  • WikiBench
  • Methodology
  • Editorial Standards
  • Disclosures
  • Privacy Policy
  • Sitemap

Follow on X

Hardware, local models, Grok, and what I actually ship.

Follow @wikiwayne
WikiWayne© 2026
PrivacyWikiBenchMethodologyEditorialDisclosuresTermsSitemap
Home/Prompt Lab/Darkroom

Darkroom

PL-151HardGamesThree.js

A first-person escape room under red safelight: low-light materials, first-person controls and collision, a staged puzzle, and an image that develops in a tray.

Darkroom
Download fileMade for ChatGPT, Claude, Gemini, Grok and other AI tools

How to run

  1. Download the file or copy the prompt.
  2. Upload or paste it into any AI chat or coding tool, and send.
  3. Save the HTML it gives you as a file and open it in Chrome.
  4. Open it with ?test=1 and look in the browser console for the TEST lines.

What it tests

A first-person escape room under red safelight: low-light materials, first-person controls and collision, a staged puzzle, and an image that develops in a tray.

The checks

  1. First frame: the bench, enlarger and trays together span at least 50% of the screen height (projected bounding box), and the average brightness of the rendered canvas is at least 18%.
  2. Walls are solid: walking for 10 s straight into each wall, the bench and the closed door never brings the camera closer than 0.25 m to them.
  3. The photo really develops: in the DEV tray the print's average brightness drops from above 90% to below 60% over 5–7 s, in at least 4 steadily darker samples, and it does not change before the sheet enters DEV.
  4. Honest counters: a scripted solve ends with cluesFound = 3, printsDeveloped = 1 and escapes = 1; one scripted wrong code adds exactly 1 to wrongCodes; switching the white light on mid-development adds exactly 1 to printsRuined and turns that sheet black.
  5. The door opens only for the code drawn in the photo (the test reads it from the scene data and tries a wrong code first), and the run has zero console errors.

Runs by model

No runs posted yet. Be the first: post yours and tag @wikiwayne.

Show the full prompt
DARKROOM: Develop the Clue, Escape the Room
HOOK OBJECT: window.__darkroom

Build "DARKROOM": a first-person, photoreal tiny escape room. You are locked in a film photographer's darkroom lit only by a red safelight, and the only way out is to expose and develop a photo that reveals the 4-digit door code. Every model, texture, light and sound is made in code. It should look like a still from a big-budget game, and the moment the photo slowly appears in the tray should make people lean in.

LOOK
- Style: photoreal PBR under a deep red safelight. Palette: safelight red #FF2A1A, wet tray black #121212, brushed steel #9AA0A6, aged wood #6B4A2E, photo paper white #F2EFE6.
- Room: 4 m wide, 3 m deep, 2.6 m high, concrete floor, tiled back wall. On a 0.9 m workbench along the back wall: a photo enlarger (base board, steel column, lamp head, lens bellows), three trays in a row labeled DEV, STOP and FIX with 1–2 cm of liquid that ripples, a wind-up timer and a stack of paper. A film canister sits on a shelf on the left wall. A drying line with 4 clipped prints hangs above the bench. The door on the right wall has a 3x4 keypad and a small red LOCKED lamp. A white ceiling light is off; its switch is next to the door.
- Materials must read as real: steel with soft reflections, glossy liquid with highlights, wood with visible grain, matte concrete. A faint haze makes the safelight and enlarger beams visible.
- FIRST FRAME (t = 0, no input): standing in the room at eye height 1.65 m, facing the bench. The bench, enlarger and trays fill at least 50% of the screen height, and the average screen brightness is at least 18%, so it reads as a lit room, not a black screen with a red dot. A one-line objective at the top, "Find the film. Develop the photo. Escape.", in white 16 px+ text on a dark backing.

MOTION / PLAY
- Controls, desktop: click to lock the pointer, mouse to look, WASD to walk, left-click to use what the center dot points at. Phone: a virtual stick on the left half to walk, drag on the right half to look, tap to use. Walls, bench, shelf and the closed door are solid.
- Anything usable within 2 m of the center dot gets a thin white outline and a one-word label (FILM, ENLARGER, DEV, STOP, FIX, KEYPAD, SWITCH) placed beside it, not over the dot.
- The puzzle, in order:
  1) Take the film canister from the shelf.
  2) Use the ENLARGER: it loads the film and its lamp turns on for exactly 5 s. A visible cone of light falls from the lens onto a sheet of paper on the base board, with dust specks drifting in the beam.
  3) Use DEV: the sheet slides into the developer. Over 6 s the image fades in from blank white to a black-and-white photo of a rainy street at night with a 4-digit house number (from the seed) clearly readable on a door.
  4) Use STOP, then FIX: 2 s each, the sheet slides tray to tray and drips.
  5) Use the KEYPAD and type the code; digits show as you press. The right code turns the lamp green, the door swings open over 1.5 s, and daylight pours in (the room brightens and the beam blooms). A wrong code flashes the lamp red and buzzes.
- Trap: flipping the white light on while a sheet is being exposed or developed turns that sheet solid black (ruined). Take a new sheet from the stack and repeat steps 2 to 4.
- setCameraOrbit(azimuthDeg, elevationDeg, distance) sets the first-person look direction (yaw, pitch); distance is ignored.
- ATTRACT MODE: with no input, a hands-free demo starts on load and loops every 25–30 s: the camera walks the route and solves the whole room (film, enlarger, DEV, STOP, FIX, code, door), holding 1 s on the photo appearing. Any input takes over; the demo resumes after 8 s with no input, starting from a reset room.

SOUND
- Footsteps on concrete, one soft tap per step while walking.
- Enlarger: a click on and off and a low electric hum while the lamp is on.
- A liquid slosh when a sheet enters a tray, a drip when it leaves.
- The timer ticks once per second while a print develops.
- Keypad: a short beep per key, a two-note chime for the right code, a buzz for a wrong one, then a heavy latch clunk and a creak as the door opens.

COUNTERS
stats() returns { fps, cluesFound, printsDeveloped, printsRuined, wrongCodes, escapes }.
- cluesFound: +1 when the film is taken, +1 when a print finishes developing, +1 when the right code is entered (3 per run). Never on a timer, never on load.
- printsDeveloped: +1 each time a sheet's image reaches 100% in the DEV tray.
- printsRuined: +1 each time the white light ruins a sheet.
- wrongCodes: +1 for each wrong 4-digit entry.
- escapes: +1 when the door finishes opening.
- On screen: a small top-left panel "Clues N/3 · Prints N · Ruined N", readable in a paused frame and never over the bench.

CHECKS for ?test=1
With ?test=1, run an accelerated self-test that measures real positions and real events (not self-set flags) and logs "TEST n PASS" or "TEST n FAIL: reason" to the console and to window.__testResults:
1. First frame: the bench, enlarger and trays together span at least 50% of the screen height (projected bounding box), and the average brightness of the rendered canvas is at least 18%.
2. Walls are solid: walking for 10 s straight into each wall, the bench and the closed door never brings the camera closer than 0.25 m to them.
3. The photo really develops: in the DEV tray the print's average brightness drops from above 90% to below 60% over 5–7 s, in at least 4 steadily darker samples, and it does not change before the sheet enters DEV.
4. Honest counters: a scripted solve ends with cluesFound = 3, printsDeveloped = 1 and escapes = 1; one scripted wrong code adds exactly 1 to wrongCodes; switching the white light on mid-development adds exactly 1 to printsRuined and turns that sheet black.
5. The door opens only for the code drawn in the photo (the test reads it from the scene data and tries a wrong code first), and the run has zero console errors.

KEEP IT SHORT
- Keep the whole file under about 1,500 lines (soft target) so you can write it in one pass and finish well inside 15 minutes.
- Save lines with helpers, loops and instancing, not by dropping features. Everything above must really work: no placeholders, no TODOs.

BUILD RULES (all required):
- Deliver ONE self-contained HTML file: inline CSS and JS, no build step, no local assets. Libraries only from a CDN. If you use Three.js, use exactly this import map: {"imports":{"three":"https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js","three/addons/":"https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/"}}
- It must open straight from disk in desktop Chrome and on an iPhone (Safari), fill the full screen, handle resize and touch, and stay smooth (target 60 fps).
- It must look stunning in the very FIRST frame: no black screen, no loading wait, no tiny subject. The main subject fills at least 50% of the screen height.
- SOUND (required): all sound is made in code with Web Audio (no audio files). Show a small "🔊 TAP FOR SOUND" chip; on the first tap create ONE AudioContext, route everything through a master gain of 0.6 into a DynamicsCompressor, and hide the chip. Also expose enableAudio() on the hook object named at the top.
- Expose the hook object named at the top with: setCameraOrbit(azimuthDeg, elevationDeg, distance) (or an equivalent camera setter), advance(seconds) that steps the simulation exactly that much for still captures, enableAudio(), and stats() returning {fps, ...the counters named above}. Use a fixed random seed of 360 so every run is the same.
- Every on-screen counter must count a real event you can see happen. No fake numbers.
- No text overlapping the subject; any label must be readable in a paused frame.
- No brand logos, no real people, no copyrighted characters, brand names or logos.

FAILURE MODES TO AVOID
- A room too dark to read: a black screen with a red glow fails. Object shapes and materials must be visible under the safelight.
- A blank or black page because one script error killed the scene.
- Pointer lock that never engages, or no way to look and walk on a phone.
- Walking through the bench, walls, shelf or closed door.
- The photo popping in at once instead of fading in over about 6 s, or a finished print whose code can't be read.
- Everything looking like flat gray boxes: steel, liquid, wood and concrete must look like different materials.
- Counters that change on load or on a timer.
- An attract mode that walks into a wall, skips a step or stops after one loop.
- The same variable declared twice, or methods called on objects that don't exist yet.

SELF-TEST LOOP
- If you can run code: build the file, open it, read the console, run ?test=1, and take screenshots at 3 s, 10 s and 30 s at 1280x720 and 390x844. Look at the screenshots and fix what looks wrong. Fix and retest until all 5 checks pass with zero console errors. Mark anything you could not run as UNMEASURED; never invent results.
- If you are chat-only: go through this prompt line by line, check your code against each line, and fix anything that would fail. Then write one corrected, complete file.
- Final answer: ONE complete HTML file in ONE code block, then the 5 checks marked PASS, FAIL or UNMEASURED. No snippets, no "rest unchanged".

Built one? Post it on X and tag @wikiwaynePost on X

More Hard prompts

Fourier Scribe

HardCharts & maps
PL-1691 run

Fresnel Beacon

HardMachines
PL-1681 run

Turing Reef

HardGenerative art
PL-1671 run

More Games prompts

Neon Beat Grid

MediumGames
PL-0594 runs

Tether Swing City

HardGames
PL-0874 runs

Neon Beat Lab

HardGames
PL-0714 runs