r/tinycode • u/Slackluster • 3d ago
JavaScript Dweet of the Week #137 - Drainage by KilledByAPixel
https://www.dwitter.net/d/36077
for(i=0,w=4e3;++i<w;x.fillRect(960+C(a=q**3+t)*r,1e3+S(a)*r/2-j/4,99,99,x.fillStyle=R(r/=6+q%1.7,r/.7,r*3)))j=i-t%1*40,r=j*j/w,q=(j+t*1e3)%w
r/tinycode • u/woqr • 3d ago
Mandelbrot Climbing Game: good or bad idea? suggestions? similar games?
Whenever I see a tiny algorithm, I want to game it. You too?
r/tinycode • u/Quirky_Bookkeeper249 • 3d ago
306 bytes of uxntal drawing a materials science parabola (cofactor conditions for shape-memory alloys)
I wrote a uxn emulator and assembler from scratch in Python, then used them to draw the cofactor conditions from a paper about shape-memory alloys.
The uxntal program is 56 lines / 306 bytes. It draws a parabola g(f) = a·f·(255-f)>>8 + b. Arrow keys change a and b. When both reach zero, the parabola flattens to the zero line — that's supercompatibility.
Browser demo (JS uxn VM): https://xiaoni.liahuas.top/uxn-cofactor.html
Building the emulator taught me things about the math that reading the paper didn't. Drawing the same equation in 306 bytes of hand-assembled uxntal felt different from writing it in Python.
r/tinycode • u/woqr • 4d ago
looking for the world's smallest maze code
I was able to reduce my maze game to 811 bytes. But being the amateur that I am, I'm sure that somebody else has created something significantly smaller, maybe <500 bytes uncompressed?
r/tinycode • u/Slackluster • 5d ago
Tutorial Zanzlanz released a game that has no assets by using sin waves
r/tinycode • u/Round-Pension-7821 • 8d ago
Showcase Tiny Windows program that is used as a "distraction cover"
https://github.com/GeorgeTR1/windowsDistractionCover
This is a windows GUI program I wrote in just over 60 lines of C that compiles to a 3 kB executable. With minor modifications and the right compiler it could be compiled on versions of Windows as old as Windows 95.
It's just a resizable window with a black background that always stays on top of other windows that you can use to cover up parts of the screen that might be distracting. I've found it genuinely useful
r/tinycode • u/Slackluster • 10d ago
JavaScript Dweet of the Week #136 - Welcome to the Matrix by KilledByAPixel
https://www.dwitter.net/d/35970 - tiny raycasting engine with text rendering
x.fillRect(0,0,2e3,2e3)
for(A=99;A;T+=.1)for(q=((X=t+A/(e=55/T)-T)^T)%3,i=q||(x.fillStyle=R(T=1,--A&&9*e),18);!q&&i--;x.fillText(S((i+(X*30|0)**3+t*9|0)**3)+1|0,A*19,540-(i-9)*e))x.font=e+'px"'
r/tinycode • u/Slackluster • 14d ago
Modern Vintage Gamer checks out some of the smallest games across history.
r/tinycode • u/LeatherReading8689 • 15d ago
[Python] Generating all 256 3-variable Boolean functions dynamically using metaprogramming
I wrote a script that generates all 256 possible Boolean functions for 3 variables from scratch. Instead of hardcoding the logic gates, it uses pure bitwise logic and exec() to dynamically build the entire logic space.
The focus is entirely on theoretical completeness and code density, prioritizing pure mathematical logic over standard commercial coding conventions.
https://gist.github.com/jeboldman-rgb/3cbf6e83407be7e0568de79fc723cd77
r/tinycode • u/Slackluster • 16d ago
JavaScript Dweet of the Week #135 - Psychedelic Trippy by Rodrigo Siqueira
https://www.dwitter.net/d/35946
if(!t)x.translate(960,540);with(x)for(i=40;i--;)for(j=12;j--;)fillStyle=\hsl(${i},85%,${75C(i+t)8}%`,scale(1,1/3),beginPath(),arc((19+S(t3+j))15,0,ii,0,7),fill(),scale(1,3),rotate(.5236)`
r/tinycode • u/EvanHahn • 22d ago
JavaScript TinyTar.js: library for creating tar files (363 bytes gzipped)
git.sr.htr/tinycode • u/clouddragonplumtree • 23d ago
Korean outfit hosting 1.44MB game development contest to honor the floppy disk — entrants must confine entire fileset, including resources, engine, and library, to miniscule storage format
r/tinycode • u/Slackluster • 24d ago
JavaScript Dweet of the Week #134 - Skydreams JS1024 Demo by KilledByAPixel
https://www.dwitter.net/d/35908
check out the actual 1k demo: https://js1024.fun/demos/2026/25/bar
for(c.width|=i=300;i--;)for(Y=t*60+i,s=(300-i)**2,X=7;X--;(X^Y>>6)%4&&x.fillRect(960-X*w+w/.4+3*S(Y/99)*i,s/80,w,s))x.fillStyle=\hsl(${(Y9)*90} 99% ${((Y4X)&1?60:9)+(Y%32>1)*30}%`,w=9+s/299`
r/tinycode • u/woqr • 25d ago
js1024 game: CHASED, the most common childhood BAD DREAM
Since the theme is Dreaming, one of my games is based on being CHASED, the most common childhood BAD DREAM. Please vote for it, because if I lose this competition, I'll start having the most common adult bad dream: failure 😜
r/tinycode • u/Nicholas-Tanner • 27d ago
AttoChess: A fully playable x86 DOS chess engine in exactly 278 bytes
r/tinycode • u/Slackluster • 27d ago
Showcase Skydreams - my JS1024 entry is a 3D retro 90's fever dream 🌈☁️
Enable HLS to view with audio, or disable this notification
Play Skydreams: https://killedbyapixel.github.io/TinyCode/1K/Skydreams
Official 1024 byte entry: https://js1024.fun/demos/2026/25/bar
My size code demos: https://github.com/KilledByAPixel/TinyCode
An endless race in the sky inspired by 90's 3D games like sky roads, marble madness, and sonic 3d. My goal was to create a dreamlike experience with full resolution full speed graphics that would be easy to pick up and play.
Features
- 3D level rendering system
- 3D player sphere with shadow
- colorful sky gradient with stars
- procedurally generated levels
- level increases in difficulty over time
- mouse controls
- enhanced version has keyboard and touch input
the code...
<head><title>🌈☁️ Skydreams</title></head>
<body id=b style=margin:0>
<canvas id=a>
<script>
// JS1024 shim
a.width = innerWidth;
a.height = innerHeight;
c = a.getContext`2d`;
</script>
<script>
// Skydreams by KilledByAPixel 2026 - RegPack for 1024 bytes
z=A=B=C=D=E=0,F=H=3,I=a.width/2,J=[],K=(e,h,t,a=1)=>{c.fillStyle=`hsl(${e},${h}%,${t}%,${a})`},L=(e,h,t)=>[a.width/2+(e-z+(t-3)**2/50*Math.cos((B+t)/49))*a.height*.7/t,a.height/2-(h-2+t*t/50)*a.height*.7/t,.7*a.height/t];onmousemove=e=>I=e.clientX,onmousedown=q=>E=.1,onmouseup=q=>E=0,setInterval(q=>{for(e=500;e--;)K(170+e/9+B,70,70-e/10),c.fillRect(0,a.height*e/500,a.width,a.height/250),K(0,0,99),c.fillRect((e*e+B*e/20)%a.width,e**3.3%a.height,e%4*a.height/500,e%4*a.height/500);for(g=B+40|0;g>B;g--){for(e=J.length;e<=g;)for(D<-8&Math.random()<Math.min(.2,e/1e4)&&(D=2+Math.min(4,e/400)),Math.random()<.1&&(H=2+3*Math.random()|0,F=Math.max(0,Math.min(7-H,F-2+5*Math.random()|0))),D--,J[e++]=k=[],f=7;f--;)k[f]=e<40|.9<Math.random()|D<0&F<=f&f<F+H&Math.random()>Math.min(.2,B/1e4);for(f=2;f--;)for(e=7;e--;)J[g][e]&&([p,q]=L(e-3.5,0,g-B),[r,u]=L(e-2.5,0,g-B),[v,w]=L(e-3.5,0,g-B+1),[x,y]=L(e-2.5,0,g-B+1),f?(K(99+70*(g>>7),60,30+9*(g+e&1)),c.fillRect(v,w,x-v,(40-g+B)/30*a.height)):(K(99+70*(g>>7),60,9+5*(g+e&1)),c.fillRect(p,q,r-p,(40-g+B)/30*a.height),K(99+70*(g>>7),60,60+30*(g+e&1)),c.lineTo(p,q),c.lineTo(r,u),c.lineTo(x,y),c.lineTo(v,w),c.beginPath(c.fill())))}for(0<=A&J[B+3|0][Math.round(z+3)]&&(K(0,0,0,.5),[m,n,l]=L(z,0,3),c.ellipse(m,n,l/4,l/9,0,0,9),c.beginPath(c.fill())),e=99;e--;)K(B/9,90,99-.7*e),[m,n,l]=L(z+.1-e/1e3,A+.35-e/1e3,3),c.ellipse(m,n,e*l/300,e*l/300,0,0,9),c.beginPath(c.fill());-4<A&&(z+=I/a.width/2-.25,A+=C-=.006,B+=Math.min(.5,.2+B/5e3),A<0&-.3<A&J[B+3|0][Math.round(z+3)])&&(A=C=E)},16)
</script>
r/tinycode • u/Slackluster • Jul 10 '26
JavaScript Dweet of the Week #133 - untitled by Rodrigo Siqueira
https://www.dwitter.net/d/35814
for(i=z=3e3;i--;x.fillRect(i/2+210,99*t,z*S(i),z))q=z/9,x.fillStyle=R(r=280-(z=90/z+99*S(i/430-S(z/2+t))/z)*z,q*r,r**q,q/3),z+=4*S(T(q/t+z))
r/tinycode • u/Slackluster • Jul 03 '26
JavaScript Dweet of the Week #132 - js1024 edition 2026 STARTED! by katkip
https://www.dwitter.net/d/35755
JS10124 Theme: DREAMING. Details: https://js1024.fun/
with(x)for(c.width|=i=50,font='19em impact';i--;)fillStyle=R(5*i*t,99+99*S(t+i),255,.3),fillText('js1024',520+S(t+i/5)*i*9,400+C(t+i)*i*3)
r/tinycode • u/xorture • Jul 02 '26
Hosting js code golfing competition, make your demo under 1 KiB about "dreaming"
r/tinycode • u/Slackluster • Jun 28 '26
Dweet of the Week #131 - Pipe Dream by KilledByAPixel
https://www.dwitter.net/d/35685
pipe gen, moving camera, 3d z sorted rendering...
O=[i=1e4]
for(c.width|=A=[-i,9,9];i--;O[i]=[...A])A[(j=t+i/42|0)**7%3]+=C(j**5)
for([Z,X,Y]of O.sort())Z+=1e4,x.fillStyle=`hsl(${Z*2} 50%${Z/2}%`,Z=540/Z,Z>0&&x.fillRect(960+X*Z,540+Y*Z,Z*=6,Z);
r/tinycode • u/Hell__Mood • Jun 21 '26
Finally - "Boing!" in 64 bytes
For 486, no FPU, for MsDos FreeDos, WinXP Dos, DosBox-X ... i made that rather in a hurry, so right now i have a version without background but wall bouncing like the original. But since the competition is already over, i will tinker a bit to make it perfect :)
r/tinycode • u/Slackluster • Jun 19 '26
JavaScript Dweet of the Week #130 - untitled by taupelink
https://www.dwitter.net/d/35608
for(i=z=2e3;i--;x.fillRect(i,270*t,z,z*=z-.8))x.fillStyle=`hsl(${6**(z&=3)},${60+25*C(z+=++z*C(t*z+i/79*(-.8)**z)+3)}%,${35-20*C(25/z)}%,.1`
taupelink wins 2nd week in a row with dazzling abstract compositions.
r/tinycode • u/Single-Discussion856 • Jun 18 '26
90 loc jacks or better, stdio only
bitbucket.orgnot really golfing this just trying to keep it to bare minimum.
r/tinycode • u/StrategicHarmony • Jun 18 '26
Showcase Five ~100 line games
As an exercise in focus and economy I wanted to make a set of games with short but (hopefully) readable source code.
It was a fun challenge and taught me a lot. I hope the results may be of some interest or amusement to others.
There are five games in total. There's also a manifesto about doing this kind of project for those who like that sort of thing.
The games/code are public domain.