Cinderwatch
A single-file 3D isometric tower defense game with AI-generated code and procedural models, textures, and audio.
Cinderwatch packs 3D isometric tower defense into one HTML file. It has four tower types with three tiers each, 20 enemy types, and a boss every five waves, across five landscapes. After each boss, the battlefield breaks apart and rebuilds itself. An AI commander starts playing as soon as the page loads, and a click hands control to the player. Kevin Ngo asked Fable 5.2 to generate the whole game in one go. Code generates all the models, textures, and sounds without asset files, while dithering, tilt-shift blur, and film grain give it the look of a miniature set.
Highlights
- Open the single HTML file directly over file://, with no build step or internet connection.
- Code generates all models, textures, and sound effects without asset files.
- Half-resolution rendering, dithering, tilt-shift blur, vignetting, and grain give the game a consistent look.
- The AI commander plays on load. Take over or hand back control at any time.
- A fixed 1/60-second timestep and seeded replays make runs easy to reproduce and record.
How it was made
Kevin Ngo says he asked Fable 5.2 to make an entire tower defense game in one HTML file. The supplied materials omit the prompt and conversation. The repository organizes the source into src/*.js modules. The tools/build.py script bundles them into index.html and inlines Three.js r170. During development, tools/cdp.js drove headless Chrome for screenshots and state checks, and tools/record.js replayed runs at a fixed timestep to capture video.
Tags · Full game · 3D · Pixel art · Low poly · Voxel · Tower defense · Strategy · Claude / Claude Code · Three.js · Procedural Generation · Single-File HTML · AI Commander · Tilt-Shift Blur · Autoplay Demo