BasicProtein· 来源· @BasicProtein26 · X·· 8 天前精选AI 评分82
推荐理由
作者展示了通过提示词模板与自校验循环让AI直接生成代码构建3D游戏的方法,提供了可复用的工作流思路。
正文 · 原文
A 1.4MB HTML file is now a full 3D game. No images. No models. No audio files.
About 700KB of that file is the Three.js library bundled inside. Everything else, the world, the physics, the gameplay, was generated as code.
The method is the part worth copying. A prompt template, then self-check loops where the AI tests its own output and fixes what breaks. No asset pipeline, no game engine, no download.
Open the file in a browser and it runs. That is the whole install step. A single HTML file just did the job of an entire toolchain.
来源:BasicProtein · x.com