r/tinycode • • Jun 16 '21

A City in 185 Bytes of JavaScript

397 Upvotes

r/tinycode • • Jan 12 '21

Wrote an HTTP client in Python that can "fit on a business card"

Post image
233 Upvotes

r/tinycode • • Dec 26 '25

Dweet of the Week #105 - Snowy Pines by KilledByAPixel

186 Upvotes

https://www.dwitter.net/d/34630

for(c.width|=j=47;j--;T=170,x.scale(s=1.02,s))for(i=h=T+j**6%T;w=i--/3;x.fillRect((X=j**5-t*T)%2500-h*y%w-T,460-y,w,3/j**.6),x.clearRect((X+i*T)%2500+S(t*3+i)*9,(t*99+i**5)%460,r=i%5+2,r))y=h-i

r/tinycode • • Jul 12 '12

[APL] One Line Game Of Life ←{↑ 1 ⍵ ∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽ ⊂ ⍵ }

Thumbnail
youtube.com
184 Upvotes

r/tinycode • • Nov 04 '14

c4 - A C compiler in four functions

Thumbnail
github.com
160 Upvotes

r/tinycode • • 3d ago Bravo

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

158 Upvotes

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


r/tinycode • • Jan 14 '14

Someone recommended I post this here: Minecraft in 5000 lines of C, includes multiplayer.

Thumbnail
youtube.com
155 Upvotes

r/tinycode • • Oct 06 '21

#define C(b,x)texture(b,fract((x+F)/r)) #define L(z)for(vec2 a=S;a.x>1.;z=sin(a--)) vec2 S=vec2(27,-28),F=FC.xy,d,v,q,p=q=d=S-S;L(p)L(q)v=C(b1,(p+q)*55.).xy,d-=dot(p,v)*q-dot(p,q)*v;o1.xy=C(b1,d).xy*.998+.01/F;v=fwidth(o1.xy)*40.;o0=C(b0,-1.+1.002*)*(.95-v.y)+v.y;

149 Upvotes

r/tinycode • • Mar 23 '21

Fake handwriting in 1 line of JavaScript

Post image
146 Upvotes

r/tinycode • • Apr 26 '20

Tiny City Simulator by Tomxor

142 Upvotes

r/tinycode • • Mar 29 '13

Simple Minecraft Clone in 580 lines of Python

Thumbnail
github.com
137 Upvotes

r/tinycode • • Oct 20 '26

Showcase Minecraft in 512 bytes

133 Upvotes

Wanted to see how much I could squeeze into one boot sector. You can fly around, break blocks, and build stuff.

The game binary is exactly 512 bytes. There’s a browser demo with a separate emulator so you can just open it and play. No saving or survival mechanics, might see if I can fit in saving later though (please let me know if you find ways to save a few more bytes to help me do this!)

Lmk what you think.

https://kierancschmitt.github.io/PocketCraft512/


r/tinycode • • Jun 18 '20

Probe arriving at Saturn

130 Upvotes

r/tinycode • • May 08 '20

Blood Cavern - 140 Bytes of JavaScript

Thumbnail
gfycat.com
129 Upvotes

r/tinycode • • May 12 '21

Tiny Race 🏁🏃‍♀️🏃🏃🏿‍♂️🏃🏻‍♀️🏃🏽‍♂️ - 1 line of JavaScript

124 Upvotes

r/tinycode • • Nov 25 '17

Terrain rendering in less than 20 lines of code

Thumbnail
github.com
108 Upvotes

r/tinycode • • Jun 20 '23

Why NSFW NSFW

107 Upvotes

Yes we are NSFW now. Why? Apparently Reddit is not able to put ads in NSFW subreddits and this serves as a little miniature (should I dare to say tiny?) protest against the upcoming API changes.


r/tinycode • • Oct 14 '21

Realistic cloudy sky in 490 bytes SVG, link in comment

Post image
107 Upvotes

r/tinycode • • Apr 25 '20

[Processing 3] 50 Lines

Post image
105 Upvotes

r/tinycode • • Apr 01 '13

Soft body physics in 998 bytes of JS

102 Upvotes

Here's what I made for js1k. It simulates a bunch of soft body blobs, collisions between them, and collisions with a moving sine terrain.

You can attract nearby blobs with mouse.

http://js1k.com/2013-spring/demo/1485

Unminified: http://jsfiddle.net/kotsoft/5TAtE/

Explanation of the math: https://skydrive.live.com/redir?resid=1F7837CC1CC2B2A4!1377&authkey=!ANyjHFa2HUjF-YQ


r/tinycode • • Nov 17 '12

.kkrieger, the 96 kilobyte 3D game

Thumbnail
youtube.com
102 Upvotes

r/tinycode • • Nov 05 '14

/r/tinycode Has Been Chosen as a Trending Subreddit for Today.

99 Upvotes

We just received a mod mail from /u/reddit informing us that /r/tinycode has been chosen as a trending subreddit for today!

You can see the comments thread here: /r/trendingsubreddits/comments/2lcmrv/trending_subreddits_for_20141105/

Clearly this means more subscribers and hopefully more frequent posts!

If you saved up something you wanted to post for a while, now is the best time :)

Lets welcome our new subscribers with friendly and helpful comments.


POST MORTEM UPDATE:

On 11/4/14 and 11/5/14 we gained 1049 new subscribers, had 28081 pageviews and 10703 unique visitors.

Compared to the previous 2 days this is a 8741% increase in subscribers, a 6117% increase in pageviews and a 5460% increase in unique visitors.


r/tinycode • • Mar 17 '13

The Matrix in Javascript in less than 600 bytes

Thumbnail timelessname.com
98 Upvotes

r/tinycode • • Feb 07 '20

City Sunset - 140 Bytes of JavaScript

Post image
95 Upvotes

r/tinycode • • Nov 04 '21

Asteroid Collection ☄️ made in pure SVG, 546 bytes

Post image
94 Upvotes