עברית 📰 Blog
← Back to Blog
AI News

How a 35-Line Prompt Built a Swimmable Underwater World in One HTML File

Stav Adam
Founder, Masterphub
November 18, 2026

Share this article

How a 35-Line Prompt Built a Swimmable Underwater World in One HTML File

In short: Abyssal Garden is an underwater world you can swim through in your browser, all in one HTML file. The trick is not a long prompt. It is a well-ordered one: a goal, priorities, constraints, numbers you can measure, and a clear "done when".

This week a project called Abyssal Garden landed on our desk: a fantasy underwater scene with kelp forests, god rays, manta rays and fish schools that you can fly through freely with keyboard and mouse. We checked the repo on 18.11.26. Here is what is true, and what you can learn from it.

What we verified

  • One file: the README says the whole world fits in "one 96 KB HTML file" (the repo description says 97 KB).
  • Performance: per the repo, about 180 fps at 2560×1440 on an RTX 5070 Ti. On slower hardware it lowers resolution and draw distance to aim for 60 fps.
  • All from code: no texture files, no 3D models. The seabed is generated on your graphics card every time the page opens.
  • The prompt is public: prompt.txt, about 35 lines.
  • MIT license: free to use, change and share.
  • Requirement: WebGPU only (Chrome or Edge on a desktop). Without it you get a "This scene needs WebGPU" message.

Not verified: some posts credit a specific AI model with building it. The repo itself does not name any model or tool, so we could not confirm that.

Try it: live demo · GitHub repo

Why this prompt works

35 lines is not much. But every line does a job. These are its parts:

  1. A one-sentence goal. A real-time underwater scene in the browser, beautiful, with a free camera.
  2. Ranked priorities. Visual quality first, stable frame pacing second, file size third. When they clash, the model knows what wins.
  3. Hard constraints. No ready-made engines, WebGPU, everything procedural, one file, no per-frame memory allocations.
  4. A measurable target. Exact hardware, resolution, and average and maximum frame time over a scripted 60-second fly-through.
  5. A scene list. Kelp, depth fog, light rays, canyons, a sunken ship, manta rays. What is not listed does not get built.
  6. Controls. WASD, mouse look, Q/E up and down, Shift to speed up.
  7. Verification. A separate "visual critic" that sees only renders and returns ranked defects, plus real frame-time measurement.
  8. Done when. Only when both checks pass.

What to take into your own prompts

  • Rank your priorities instead of listing wishes.
  • Replace "make it fast" with a number you can check.
  • Say what is not allowed, not only what you want.
  • Define the check and "done" before you start. That way the model improves its own work instead of stopping at the first draft.

Bottom line

A short prompt can build something big when it is focused: one goal, clear priorities, constraints, numbers and a check. That is the pattern worth copying, even if you are building a landing page and not a 3D world.

Want ready prompts for building sites and games in code?

Browse prompts on Masterphub

Share this article