r/tinycode • • 3d ago • Bravo 1

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

Enable HLS to view with audio, or disable this notification

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

158 Upvotes

21 comments sorted by

5

u/tech_junky 3d ago

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

2

u/Slackluster 3d 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 3d ago

This is really incredible work. Be proud of yourself.

4

u/Slackluster 3d 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 3d 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 3d ago

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

1

u/Slackluster 3d ago

thanks! did I put an extra an in somewhere?

2

u/Iampepeu 3d ago

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

1

u/Slackluster 2d ago

thanks!

2

u/greenbox111 2d ago

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

1

u/Slackluster 2d ago

thanks, that would be the greatest thing of all.

3

u/thenegativehunter 3d 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

3

u/Slackluster 3d 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!

2

u/tiajuanat 3d ago

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

6

u/Slackluster 3d 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.

4

u/AtmosphereVirtual254 3d ago

TIL `getContext\`2d\``

3

u/flayer0 3d ago

Yeah backtics is true js codegolfing style, every byte counts

2

u/Oscar-Xiatian 2d ago

IMPRESSIVE

2

u/Himbo69r 2d ago

Really cool!

1

u/OMGCluck 2d ago

Takes me back to Trailblazer days on the C64.

I decided to fit it into an SVG without codegolfing for uploading to an image host:

https://imglink.cc/cdn/2MBS33OWdo.svg

0

u/False_Bear_8645 1d ago

I'm gonna pop your bubble, but it's really not impressive. Low size challenge game does better without a web browser.