Loading…
Creator · vib3coded
Source postreplies 25reposts 12saves 75
The reproduction prompt keeps the original and adds runtime, asset and acceptance requirements. These additions are not the author’s words.
PROMPT
Build "Dusk Depths", a submarine hunting game, as one self-contained HTML file: WebGL2, no engine, no libraries, no image or audio assets (Google Fonts only). Everything is procedural. All in-game text in English.
LOOK
Pixel art at dusk: render at about 540 rows and upscale with nearest-neighbour, 4x4 Bayer dithering, a limited palette (pink-orange sky, violet-blue sea), flat 3-tone shading on meshes and a 1-2 px dark outline in a post pass. Ray-march the sea surface, the sea bed (tiling height field, 20-250 m deep) and the sky in one fragment shader, above and below water: swell and sun glitter on top; light shafts, caustics, fish, weed and coral below. Draw the HUD on a separate Canvas 2D layer with its own pixel grid and a 3x5 pixel font.
SHIPS
Model in code, with real detail: an aircraft carrier (angled deck, island, parked jets, hull number), destroyers, a cruiser, a fleet oiler, a helicopter with dipping sonar, and the player's attack submarine. Add plating seams, rust streaks, lit portholes, bow foam and wakes.
GAMEPLAY
The player hunts a carrier group that zig-zags across the sea. Stealth matters: noise grows with speed, a thermal layer at 95 m hides the boat, escorts ping, hunt and drop depth charges, the helicopter dips its sonar. Lock a target, wait for the firing solution, fire torpedoes (4 tubes, 9 s reload); decoys and an active ping are available. Score is tonnage sunk; each new group is stronger.
TORPEDOES
A torpedo leaves exactly along the aim: on the bearing of the locked target, otherwise where the periscope or camera points. It homes by pure pursuit, never leading off to one side. Make it large and bright (orange warhead, white body, red band) with a clear white wake, and keep it visible through the water from above. Hits throw up a water column, fire and debris; ships burn and sink.
CAMERAS
Three views switched with Space: a chart (depth bands, contours, range rings), a chase camera, and a periscope that raises itself and tracks the lock. Add a torpedo camera: after firing, the view follows the torpedo low over the water off its quarter, pulls back for the impact, plays the first hit in brief slow motion, then returns to the boat. Space returns early, K toggles it.
CONTROLS
W/S engine telegraph, A/D helm, Q/E depth, Tab or click to lock, F to fire, P ping, G decoy, mouse to look. Touch: on-screen buttons and drag to steer. Responsive helm.
QUALITY
Hold 60 fps on an ordinary laptop and drop resolution automatically if it cannot. Work in landscape and portrait on phones. Test in a headless browser: screenshots of every view, a scripted attack, a long random-input soak, real keyboard and touch input.Models & stability
Recommended models
Keep exploring

Claude Opus 5.5 built this jelly dam for 18.51$ A single HTML file using pure WebGPU, with no libraries. Waves follow a shallow-water model, reservoir levels re…
Prompt
PROMPT: Build "Dam Jelly", a new piece in my "Material Studies" series: a single-file, self-contained interactive WebGPU diorama (one HTML file, all JS/CSS/WGSL inline, no network requests, no librar…

Garages, chalk and one ball for the whole yard ⚽ Claude Opus 5.5 vs. GPT-6 Astra - same prompt: build a 3D backyard with pixel-art rendering and a game of four …
Prompt
PROMPT: Build a single-file HTML + three.js (r160) scene called "Chalk Square": four square played with a football in a back yard on a floating island. It is a real 3D scene rendered as crisp pixel a…

Claude Opus 5.5: first attempt → final result in 21 minutes 🐢🐋 A tiny world on the back of a flying turtle. Autumn trees, a lighthouse, a waterfall pouring in…
Prompt
PROMPT Create a single self-contained HTML file using Three.js that renders a beautiful animated voxel-art 3D scene. A floating island rests on the shell of a giant sea turtle that slowly swims thro…
Same creator
Each detail page keeps the original result, the prompt, and retest evidence in one reading path.