r/tinycode • u/Slackluster • Jun 16 '21
r/tinycode • u/sethmlarson_ • Jan 12 '21
Wrote an HTTP client in Python that can "fit on a business card"
r/tinycode • u/Slackluster • Dec 26 '25
Dweet of the Week #105 - Snowy Pines by KilledByAPixel
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-ir/tinycode • u/isforinsects • Jul 12 '12
[APL] One Line Game Of Life ←{↑ 1 ⍵ ∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽ ⊂ ⍵ }
r/tinycode
•
u/Slackluster
•
3d ago
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
r/tinycode • u/FogleMonster • Jan 14 '14
Someone recommended I post this here: Minecraft in 5000 lines of C, includes multiplayer.
r/tinycode • u/flockaroo • 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;
r/tinycode • u/thecoderdude • Mar 29 '13
Simple Minecraft Clone in 580 lines of Python
r/tinycode • u/kierancschmitt • Oct 20 '26
Showcase Minecraft in 512 bytes
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.
r/tinycode • u/Slackluster • May 08 '20
Blood Cavern - 140 Bytes of JavaScript
r/tinycode • u/Slackluster • May 12 '21
Tiny Race 🏁🏃♀️🏃🏃🏿♂️🏃🏻♀️🏃🏽♂️ - 1 line of JavaScript
r/tinycode • u/feute • Nov 25 '17
Terrain rendering in less than 20 lines of code
r/tinycode • u/nexe • Jun 20 '23
Why NSFW NSFW
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 • u/finnhvman • Oct 14 '21
Realistic cloudy sky in 490 bytes SVG, link in comment
r/tinycode • u/kotsoft • Apr 01 '13
Soft body physics in 998 bytes of JS
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 • u/nexe • Nov 05 '14
/r/tinycode Has Been Chosen as a Trending Subreddit for Today.
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 • u/Am3n • Mar 17 '13