Dev builds browser-based 3D RTS in plain JavaScript, shares key lessons learned
A solo developer released Singularity Rush, a free browser-based real-time strategy game built with roughly 6,700 lines of plain JavaScript and three.js, using no framework or bundler. The game simulates four AI labs competing to train an advanced model, with units mining data, generating compute, and sabotaging rivals. The developer kept the game simulation entirely separate from the rendering layer, enabling automated AI-vs-AI testing in CI and deterministic replays via a seeded random number generator. A post-launch surprise revealed that CDN caching overrode origin headers, causing mismatched JavaScript module versions for returning players, which was fixed by hashing filenames and using immutable URLs in production. The developer noted that while the no-build-step approach worked well during development, production deployment required additional tooling to handle caching and asset versioning reliably.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in