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/Descent 64K

Descent 64K

PL-152HardGenerative artWebGL shaders

A 32-second dive in raw WebGL2 under a 64 KB file budget: shader craft, seawater light physics, a timed camera path and beat-synced visuals.

Descent 64K
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 32-second dive in raw WebGL2 under a 64 KB file budget: shader craft, seawater light physics, a timed camera path and beat-synced visuals.

The checks

  1. Size and self-contained: bytes is under 65,536 and the page requested no files at all (performance.getEntriesByType("resource") is empty).
  2. Seawater light: measured from the rendered canvas, the ratio of average red to average blue at 150 m is under one third of that ratio at 5 m, and the average brightness at 600 m is under half of that at 5 m.
  3. Timeline: advance() to 8.5 s, 16.5 s and 22.5 s gives zone 2, 3 and 4; one full dive plus the fade takes 33 s ± 0.2 s, and loops goes up by exactly 1.
  4. Beat sync: light pulses start every 0.5 s ± 20 ms through SUNLIT and TWILIGHT (at least 20 pulses checked), on the same clock the audio is scheduled with.
  5. Fish: at least 200 fish exist in SUNLIT, no two fish centers stay closer than one body length for more than 3 frames in a row, fish within 2 m of the camera move away from it, 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
DESCENT 64K: A Demoscene Dive in Under 64 KB
HOOK OBJECT: window.__descent

Build "DESCENT 64K": a 32-second demoscene-style intro in one HTML file that must stay under 64 KB. It is one unbroken dive from the sunlit surface of a tropical sea to a glowing garden on the abyssal floor, with every visual generated by code and a synthesized soundtrack whose beat drives the light and the scene changes. People should watch it twice: once for the dive, once to believe it fits in 64 KB.

LOOK
- Style: cinematic real-time demoscene, drawn with raw WebGL2 and GLSL (raymarching, or meshes generated in code). No Three.js and no other library. Palette by depth: surface turquoise #1FB5C9, mid-water blue #0B4F8A, deep indigo #0A1A3F, abyss black #02040A, glow cyan #4DF5FF and glow magenta #FF4FD8.
- Four zones, each clearly different at a glance:
  1) SUNLIT (0–50 m): slanting sun rays through the surface, moving caustics on a coral reef and white sand, and a school of at least 200 small fish moving as one.
  2) TWILIGHT (50–200 m): reds and oranges are gone and everything is blue-green; drifting specks of marine snow stream past the camera.
  3) MIDNIGHT (200–1,000 m): near black, with at least 30 glowing jellyfish-like drifters pulsing cyan and magenta.
  4) ABYSS GARDEN (1,000 m and deeper): a field of at least 150 glowing tube plants and anemones around a hydrothermal vent with shimmering heat haze and rising particles, lit only by their own glow.
- Light behaves like real seawater: going down, red fades first, then orange and yellow, then green, until only blue is left, and the overall light falls off with depth.
- Overlay: a thin depth gauge on the right edge ("DEPTH 0 m", rising as you sink) and the title "DESCENT 64K" for the first 3 s. Both small, never over the main subject.
- FIRST FRAME (t = 0, no input): just under the surface looking down at the sunlit reef, with sun rays and caustics; the reef and the fish school fill at least 50% of the screen height. Bright and colorful, not dark.

MOTION / PLAY
- Timeline at 120 BPM (one bar = 2 s): SUNLIT 0–8 s, TWILIGHT 8–16 s, MIDNIGHT 16–22 s, ABYSS GARDEN 22–32 s, then a 1 s fade back to the surface and the dive loops. Depth follows the timeline: 50 m at 8 s, 200 m at 16 s, 1,000 m at 22 s, and about 1,200 m at the garden floor by 25 s. Zone changes land exactly on bar lines.
- The camera follows one smooth path (no jitter, no jumps), turning slowly to frame each zone's highlight: the reef, the fish school, the jellies, the vent.
- Fish keep at least one body length apart, turn together, and swerve away when the camera passes within 2 m.
- Controls: drag (mouse or finger) to look up to 60° away from the path; it eases back when released. Space or a tap pauses and resumes. Left and right arrow keys jump back or forward 4 s.
- setCameraOrbit(azimuthDeg, elevationDeg, distance) sets the look-around offset; distance is ignored. advance(seconds) moves the timeline exactly that far.
- Performance: on phones, render at a lower internal resolution (scaled up to fill the screen) so it stays smooth.
- ATTRACT MODE: the whole dive plays hands-free from load and loops forever (32 s plus the 1 s fade). Input only looks around or pauses; playback resumes after 8 s with no input.

SOUND
- A soundtrack synthesized in code at 120 BPM: a warm pad and bright arpeggio near the surface that thin out with depth into a deep drone and a slow heartbeat pulse in the abyss.
- A kick drum on every beat in SUNLIT and TWILIGHT, and on every bar below that. Each kick makes the light visibly pulse for about 100 ms (caustics or glow brighten), driven by the same clock as the audio.
- A long whale-like call (a slow pitch-swept tone) as TWILIGHT begins, and a glassy shimmer when the camera passes through the fish school.

COUNTERS
stats() returns { fps, depthM, zone, kicks, loops, bytes }.
- depthM: the camera's real depth in meters, from its actual position (the gauge shows this number).
- zone: 1 to 4, changing only when depthM crosses 50, 200 and 1,000.
- kicks: +1 for each kick, each one matched by a visible light pulse. Never on load.
- loops: +1 each time the dive restarts at the surface.
- bytes: the size of the page's own HTML (document.documentElement.outerHTML.length).
- On screen: only the depth gauge, the title for 3 s and the required sound chip. No other HUD.

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. Size and self-contained: bytes is under 65,536 and the page requested no files at all (performance.getEntriesByType("resource") is empty).
2. Seawater light: measured from the rendered canvas, the ratio of average red to average blue at 150 m is under one third of that ratio at 5 m, and the average brightness at 600 m is under half of that at 5 m.
3. Timeline: advance() to 8.5 s, 16.5 s and 22.5 s gives zone 2, 3 and 4; one full dive plus the fade takes 33 s ± 0.2 s, and loops goes up by exactly 1.
4. Beat sync: light pulses start every 0.5 s ± 20 ms through SUNLIT and TWILIGHT (at least 20 pulses checked), on the same clock the audio is scheduled with.
5. Fish: at least 200 fish exist in SUNLIT, no two fish centers stay closer than one body length for more than 3 frames in a row, fish within 2 m of the camera move away from it, 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 file over 64 KB. Measure it before you answer; cut comments and repeated code, not features.
- Loading any library, font, image or file. Everything is generated in code.
- A black or blank canvas from a shader that failed to compile. Check the shader logs and keep the page working.
- Zones that look the same, a red tint that never fades, or a deep zone that is fully black with nothing glowing.
- A camera that jerks, jumps or cuts between zones: the dive is one smooth move.
- Fish that overlap, jitter, or swim through the reef.
- Light pulses that drift off the beat.
- A canvas that doesn't fill the screen or resize, or a HUD that covers the scene.

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 Generative art prompts

Ink Flow Field

MediumGenerative art
PL-0624 runs

Turing Reef

HardGenerative art
PL-1671 run

Matrix Garden

HardGenerative art
PL-0664 runs