Dev Builds 5 Vanilla JS Browser Games, Documents the Bugs That Taught Him Most
A developer created a free browser game center hosted on GitHub Pages using only vanilla JavaScript, HTML, and a CDN-loaded Three.js library — no frameworks, no build tools, and no backend. The project was designed so anyone, including children on school laptops, could play without creating accounts or installing software. To comply with ad network policies, three games were split into separate wrapper and raw canvas pages using iframes, ensuring ads only appeared alongside publisher content. For a 3D real-time strategy game, a switch to instanced mesh rendering reduced draw calls from hundreds to just five, regardless of the number of on-screen tanks. The developer also discovered that headless Chrome uses a software rasteriser that silently fails shadow rendering, a debugging lesson that cost significant time before the root cause was identified.
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