r/tinycode • • 1d ago • Bravo 1

Showcase I made a video explaining how my 1KB JavaScript 3D game works (JS1024 winner)

Skydreams is an endless 3D arcade game that won first place in JS1024 2026, and the whole program is just 1019 bytes of JavaScript. In this video I build it up step by step, from a flat grid to the final packed code: the fake-3D projection, the curving road, solid blocks, the track generator, the sky, the ball, the physics, and all the tricks it took to squeeze it under 1KB.

🕹️ Play Skydreams: https://js1024.fun/demos/2026/25/bar
💾 More size-coded experiments: https://github.com/KilledByAPixel/TinyCode

105 Upvotes

18 comments sorted by

5

u/tech_junky 1d ago

Nice - great nostalgia for SkyRoads too: https://en.wikipedia.org/wiki/SkyRoads_(video_game)

2

u/Slackluster 1d ago

big inspiration for this game! I had to cut a lot to make it fit like the varying heights of blocks but still managed to get most of the essence I hope.

5

u/otakugrey 1d ago

This is really incredible work. Be proud of yourself.

4

u/Slackluster 1d ago

thanks! been wanting to share more about how my work is done for a larger audience for a while, I hope to make more of these covering some other cool tiny code projects.

2

u/Slackluster 1d ago

This is a sneak preview of the video essay I plan to release tomorrow to a wider audience, thanks for all your support!

2

u/light24bulbs 1d ago

An AN endless 3d arcade game. Very impressive project. 

1

u/Slackluster 1d ago

thanks! did I put an extra an in somewhere?

2

u/Iampepeu 17h ago

Fuck this is good! Very impressive! And great explanation as well! Thank you!

2

u/greenbox111 4h ago

Such a simple take. Am sure many will get confidence to code and learn math from this. Good karma.

1

u/Slackluster 4h ago

thanks, that would be the greatest thing of all.

3

u/thenegativehunter 18h ago

as soon as he said "Browser" i'm like yea sure... your game isn't 1KB buddy, it's the entire browser required to run it.

I can make a game in my game engine, the game assets will be tiny, but the game engine runtime, will not, but it will be smaller than your big ass browser. nothing to brag about

2

u/tiajuanat 17h ago

I have to agree. The frameworks and runtime are doing a lot of heavy lifting there

2

u/Slackluster 15h ago

Fair point, but every sizecoding category relies on its platform. The top 4k intros mostly lean on Windows and DirectX, and old DOS intros lean on the BIOS and VGA hardware. JS1024 is JavaScript only.

The browser just gives you a canvas to draw on. Any 3D rendering, physics, or game logic has to fit in your 1k. If anything, JS is a disadvantage since it's uncompiled text and every keyword costs bytes. Native code is much denser, which is how people fit amazing stuff in 256 bytes of assembly.

If you want to see what people pull off on other platforms, check out https://www.pouet.net/. The 256b and 1k categories are wild.

1

u/Slackluster 16h ago

that is one way to think about it. I welcome you to enter JS1024 and JS13K...

https://js1024.fun/ - fit the entire program in 1k of javascript

https://js13kgames.com/ - fit a game in a 13k zip file

both browser only with no external assets.

surely you will win both of these easily. I look forward to the competition!

4

u/AtmosphereVirtual254 23h ago

TIL `getContext\`2d\``

3

u/flayer0 19h ago

Yeah backtics is true js codegolfing style, every byte counts

1

u/Oscar-Xiatian 11h ago

IMPRESSIVE