AI Game Gallery 00

Opus 5.5 Creates Everything(纯代码一镜到底短片)

Claude Opus 只靠一份约束提示词,用原生 JS+WebGPU 写出 55 秒纯代码一镜到底视觉短片。

这不是可玩游戏,而是 AI 完全用代码生成的 55 秒电影式演示:光标敲下一行行真实代码,海浪、彩绘玻璃教堂、飞鸟、城市、星河依次变形,最后收束成光标和一行文字。作者称由 Opus 模型在约 2 小时内完成,不用 Three.js、GLSL、外部 3D 或贴图,画面、几何、字体、音乐音效全部由代码合成。仓库 agent-demos 公开了固定提示词,方便不同模型对比同一份提示词的产出。提示词本身是约束写法的范例,值得做 AI 游戏或演示的开发者参考。

值得借鉴

制作流程

作者称使用 Opus(帖中写作 Opus 5.6)和一份约束提示词,耗时约 2 小时,在 WebGPU 上用原生 JS 与 WGSL 手写渲染器,不使用 Three.js、GLSL、外部 3D 模型或贴图。提示词要求先写 TREATMENT.md,先把 0–13 秒做到最终质量并自评,再扩展到全片,并至少做三轮整片批评重做。验证方式包括连续帧条带、2fps 联系表、亮度跳变审计、闪光计数和响度测量。交付物包括 index.html、两个 MP4、soundtrack.wav、contact_sheet.png、thumbnail.png 和 NOTES.md。材料中没有该次生成的实际验证数据。

公开提示词

Make a mind-blowing 55-second film about yourself, made entirely in code, for posting on X as a showcase. It is one unbroken shot in which you type short lines of real code and the world obeys: each Enter transforms everything on screen into what the line says, mid-flight, with no cuts. It must win on sheer spectacle (scale, light, speed, destruction, transformation, music) so that a stranger scrolling past stops in the first second, stays to the end, and refuses to believe it is all code. Build it yourself and start no subagents.

The film
One continuous camera move, 1920×1080 at 60 fps, exactly 55.0 seconds. Every world is made from the one before it: the same sea surface, the same shards, the same lights. The score runs at 120 BPM and every Enter lands on a beat (1, 5, 9, 11, 14, 19, 27, 35 and 43 s). The cursor ignites into the sun in the first second, and in the last seconds everything collapses back into one point, which turns out to be the cursor. Type these lines exactly, at these times:
0.0–1.0 sea.wind = 38; 2.4–5.0 wave.height = 54; 5.0–9.0 water = glass; 9.0–12.9 sky.hour = 6 then edited to 18; 12.9–14.0 shards.fly(); 14.0–19.0 city.floors = 160; 19.0–27.0 gravity = 9.8 then -9.8; 27.0–35.0 time.scale = 1e15; 35.0–43.0 collapse(); 45.95–55.0 "I'm Opus. / What should we make?"
(完整提示词见 https://github.com/RezAIT00/agent-demos/blob/main/prompts/creates-everything/prompt.md)

标签 · 场景 · 特效 · 动画动作 · 音乐音效 · 3D · 写实 · Claude / Claude Code · 原生 Canvas/WebGL · WebGPU · WGSL · 纯代码 · 程序化音乐 · 一镜到底 · 约束提示词

源码 · 原帖

GALLERY