Image: u/Slackluster on Reddit · The lighthouse on its rock in a stormy sea
A stormy lighthouse demo in the LittleJS game engine, all in code
The author of the LittleJS engine had Claude write a 3D lighthouse scene in a storm, with lightning on click, generated entirely in code without three.js.
Credits
- Reddit poster Slackluster Source ↗
Earliest dated source:
The full story
A 3D demo of a lighthouse in a storm, written by Claude for LittleJS, the small open-source JavaScript game engine made by the person directing it. It is one HTML file plus the engine, with no build step and no image or sound files; click and lightning strikes.
The engine's WebGL2 renderer draws everything: Gerstner waves in a shader, a generated rocky island, clouds lit from inside by branching bolts, spray particles, and sound synthesised on load, with thunder arriving after the flash according to distance.
Claude wrote the code over several rounds of feedback and checked its own work by grabbing frames from a headless browser and unit testing the wave, lightning and sound maths. It runs at 60 fps at 1080p and the source is GPL-3.0.
How it was done
Tools
Themes
Loading themes…
Sources
From a short post by the maker, so the details are as they tell them.
- Reddit: Claude build a stormy lighthouse in a small JavaScript game engine, everything generated in code, noReddit poster: SlacklusterPosted
The engine author's post in r/ClaudeAI.
- The project: killedbyapixel.github.io
The playable demo.