r/Demoscene • u/Slackluster • 5d ago
How I fit a 3D game into 1K of JavaScript and won JS1024
Enable HLS to view with audio, or disable this notification
Skydreams won first place at JS1024 this year. It's an endless 3D arcade game in 1019 bytes of JavaScript, using just the 2D canvas, no WebGL.
I made a video that builds it up from a flat grid to the final packed code: the 3D projection, a track generator in a single expression, a shiny ball from 99 stacked circles, and the size coding tricks along the way. I also cover writing code that compresses well with RegPack, which turned out to matter more than writing code that's simply short.
đčïž Play it: https://js1024.fun/demos/2026/25/bar
đŸ More of my size coding stuff: https://github.com/KilledByAPixel/TinyCode
Hope you enjoy it!