作者公开了利用 Claude 生成代码实现游戏画面演变的完整 Prompt,提供了可复用的技术路径。
Holy i created this brand new NICHE Completely with claude for $20
and im leaking the prompt for FREE
it takes an already winning formula :
Evoloution of diffrent things and creates it fully with a python script and three.js im still experimenting on this style and making it better
im going to post this on a completely brand new youtube account and share the results here
if i hit 10M shorts views on the new account or 5k followers on this X account
ill drop the full production pipeline to this style completely for FREE
anyways here is the prompt for this video for free im not that evil to gatekeep the prompt too lmao
enjoy :
Make me a vertical short that shows the evolution of video games by playing ONE small game level once and redrawing it in the graphics of seven eras, 1972 to today. Build every frame in code. No video model, no game engine, no image files.
<inputs>
Before you build anything, ask me:
- who the hero is (default: a small boxy robot, white body, cyan visor, orange scarf and antenna bulb) and what the level looks like (default: a forest path at sunset that ends on a cliff over a lake)
- whether I want different eras or years from the seven below
- whether I already have music and sound effects I want used
If I have no idea, pitch me 3 heroes with their worlds and let me pick. The hero, the enemies and the world are original. Never draw or name a real game, console, character or logo.
</inputs>
<direction>
A 1080x1920, 30 fps, 43 second video. The hero runs right through one level: collects gems, jumps a gap, jumps an enemy, over and over. The gameplay never changes. Only the way it is drawn changes, in seven eras, each a clear step up from the one before:
- 1972 BLOCKS: 72x128 pixels, white rectangles on black. The hero is a 5px square, the ground is a line with holes, gems are blinking dots, the score is two blocky digits.
- 1980 ARCADE: 108x192, black background, 6 loud flat colours, neon double-line floor, twinkling stars, tiny 8x10 two-frame sprites, SCORE and HI in red.
- 1985 8-BIT: 144x256, flat colours, no gradients. A desert: pale peach sky, stepped orange mesas on two parallax layers, cacti, big sandstone blocks for ground, 12x16 sprites with a 2-frame run.
- 1991 16-BIT: 216x384. Dithered sunset sky (indigo to orange in ~20 bands with a 4x4 Bayer pattern), a sun, snow-capped purple mountains, teal hills with tree silhouettes, bushes, three-tone shaded sprites with dark outlines, layered dithered soil with stones, animated water in the gap, dust puffs on landing.
- 1996 3D: the big moment. Real low-poly 3D rendered at 270x480: vertices snapped to a coarse grid so everything wobbles, textures that swim (affine mapping), chunky texels, flat shading, 15-bit colour with ordered dithering, close fog, blob shadows.
- 2007 HD: 720p internal. Smooth models, per-pixel lighting, hard-edged shadow map, shiny specular, strong bloom, a brownish desaturated grade.
- 2026 NOW: full resolution. Thousands of grass blades that bend away from the hero, soft shadows, backlit translucent foliage, fog, god rays from the sun, depth of field on the close-up, floating pollen, a sun glint on the lake.
The pixel eras and 1996 go through a light CRT pass (slight barrel curve, faint scanlines tied to the source rows, a faint RGB mask, a tight glow) that gets weaker each era. Pixels stay razor sharp. The modern eras get no CRT pass.
One overlay sits on top the whole time in a chunky 5x7 pixel font: the year (big, white, centred near the top), the era name under it in that era's accent colour, and seven small squares that fill up. During a change the year counts up through the years in between.
Eras change with a bright scanline that sweeps top to bottom: new era above the line, old era below it tearing sideways, a cyan-white glow on the line. The picture opens like an old TV switching on (a line that widens, then opens) and ends by collapsing back to a line and a dot.
Sound is real, never synthesised in code: a real chiptune track for the pixel eras, cutting to a real orchestral or cinematic track on the exact frame the game goes 3D, with a swell and a boom on that cut. The game's own sounds evolve too: single bleeps in 1972, chip coins and jumps in the 80s and 90s, then real footsteps, cloth and glass-clink pickups in the modern eras.
Banned: anything that reads as a real game (if the 8-bit era has blue sky, puffy clouds, round green hills and orange bricks, change it), real logos, AI video, music or effects generated in code, text other than the overlay, eras that look alike, a camera that sits still in 3D, any frame where the hero is hidden.
</direction>
<structure>
Times in seconds. Hero speed 6 units/s. Every 5 s from t=1: gems at +0.5, +1.0, +1.5, a jump at +2.0 over a gap (gem at the top of the arc), a gem at +3.3, a jump at +3.9 over an enemy. Jumps last 0.7 s and are 1.6 units high.
0.0-0.9 TV switches on over the 1972 picture
0.9-5.0 1972
5.0-9.5 1980
9.5-15.0 1985
15.0-20.5 1991
20.5-27.5 1996. Starts as a side view that matches the 2D framing exactly (same hero position, same ground height). At 21.3 the camera swings around behind the hero, ending by 22.9.
27.5-33.5 2007, camera over the shoulder, drifting to the other side
33.5-43.0 2026. Camera sweeps round to a low telephoto close-up in front of the hero (35.5-36.7, shallow depth of field), swings back behind and up, the hero slows to a stop at a cliff edge at 39.5, the camera rises past it to show the lake and the sunset.
42.2-43.0 TV switches off
Each change takes 0.55 s. No jump or enemy after the hero starts slowing down.
</structure>
<build>
1. One HTML page with a WebGL2 canvas and a single function frame(t) that draws the exact frame for time t. Everything, including where the hero is, which gems are gone and the camera, is a pure function of t. Nothing depends on the previous frame or on a clock.
2. Put the level in a few arrays (gem times, jump times, gap positions, enemy positions) that every era and the sound mix both read.
3. Pixel eras: write a tiny software framebuffer (a Uint32Array with rect, disc, diamond, sprite and text helpers), draw each era into its own low-resolution buffer, upload it as a texture and scale it up with crisp pixel edges. Small sprites are rows of letters with a palette; the 16-bit hero is drawn from rectangles with three tones per colour.
4. 3D eras: build ONE world (terrain heightfield with a flat path, stream trenches at the gaps, instanced trees, rocks and bushes, the hero from about 25 boxes with swinging limbs and a scarf, octahedron gems, a squashy slime with eyes) and ONE camera path. The three eras are three sets of shader switches and three internal resolutions over that same world, with a low-poly and a high-poly version of each mesh.
5. For the side view at 20.5, hide everything on the camera's side of the path and add a vertical wall of soil along the cut, so the 3D world looks like a slice that matches the 16-bit picture. Bring the hidden half back while the camera swings.
6. Sun low and almost straight ahead of the running direction so the hero is backlit, shadows fall toward the camera and the last shot looks into the sunset.
7. Each era draws into its own full-size target. A final pass blends two of them with the scanline wipe, adds the overlay and the TV on/off squeeze.
8. Sound: find real tracks and effects with licences that allow reuse (CC0 or CC BY on Openverse, Jamendo, OpenGameArt). Measure loudness over time to find where each track gets going, cut the second track in on its biggest entrance, place every effect from the level arrays, mix to about -14 LUFS. Give me a credits file with title, artist, licence and link for everything that needs credit.
9. Before any full render, draw one still per era plus the mid-swing and the final vista at full size, and look at them. Then a contact sheet of one frame per second.
10. Render by stepping frame(t) in a headless browser and saving JPEGs at quality 95, encode with ffmpeg (H.264, yuv420p, 30 fps), add the sound without re-encoding the video.
</build>
<gotchas>
- The first 8-bit era came out looking like a very famous plumber's first level. Check each era against the real games it could be mistaken for and move the palette and shapes away.
- From the side, the hills and trees on the near side of the path hide the hero. Clip them (step 5) or the big 2D-to-3D moment shows nothing.
- A low camera inside tall grass fills the frame with green. Shrink blades that are within about 2 units of the camera and keep close-ups over the path.
- The first pixel eras came out blurry twice over: the upscale blended every pixel with its neighbour, and the TV glow and scanlines were far too strong for 72-pixel-wide art. Sample at texel centres and only blend in the last output pixel before an edge, keep the glow about 3 output pixels wide and the scanlines faint, and check a full-size crop before rendering.
- The first modern eras were a pale haze: fog colour too bright toward the sun, bloom too strong, god rays too strong. Each newer era has to look clearer than the last, so keep fog and bloom low and let contrast do the work.
- With the sun off to one side it never appears in a vertical frame. Put it within about 10 degrees of straight ahead.
- A lake drawn as a finite quad shows its edge as a hard diagonal line. Make it far bigger than the far clip plane needs.
- Soft shadows that are jittered with a 4x4 pattern show as blocks at low resolution. Rotate the samples with a per-pixel hash.
- smoothstep with its edges reversed is undefined in GLSL. Write 1.0 - smoothstep(lo, hi, x).
- Use explicit-LOD lookups for the shadow map so the shader also compiles cleanly on Direct3D.
- Software rendering in the cloud takes 5-7 s a frame for the newest era at 1080x1920 and under half a second for the pixel eras. Do the stills first, render eras as separate ranges, and re-render only what changed.
- Some sound sites are blocked from the cloud workspace. If one refuses, use another source; do not fall back to synthesising the sounds.
- You cannot hear what you mix. Tell me exactly which tracks you used and where the cut is so I can check it by ear.
</gotchas>
<start>
Ask me the questions in inputs (or pitch me 3 heroes), then show me one still of each era before you render anything.
</start>
来源:caesar · x.com