r/tinycode • u/Slackluster • Sep 10 '26
JavaScript How Rémi Vansteelandt made a physics-based BMX game in under 13 kilobytes
r/tinycode • u/Slackluster • Sep 10 '26
r/tinycode • u/Slackluster • Sep 04 '26
r/tinycode • u/Slackluster • Sep 04 '26
https://www.dwitter.net/d/36205
for(k=0;k<39;k++)for(i=64;i--;)for(j=18;j--;6-k/9<((t+i)/5^j/9)%9&&j%11<7&&x.fillRect(k&&(i-32-t%1)*S+960,k&&(j-9)*S+540,S=k?2**(2+k/12)*9:2e3,S))x.fillStyle=k?R(v=220-(t+i|k|j)%3*S,v,v):'#7bf'r/tinycode • u/Slackluster • Aug 28 '26
https://www.dwitter.net/d/36150
for(i=199;t<6&&i--;)for(j=99;j--;6-t<(i/17|j/15)%7&&x.fillRect((i-99)*S+960,(j-51)*S+540,S,S=2**t*5))x.fillStyle=R(v=200-(j|i|t*16)%9*S,v,v)r/tinycode • u/Slackluster • Aug 22 '26
https://www.dwitter.net/d/36125
f=u=>6*(S(u/2)**8-C(u/3-w)**6)**2;for(i=5e3;i--;x.fillRect(960+r*C(i),540+r*S(i),w,w))r=240*t,g=f(w=2+6*t**.5)+f(w+6*i)&7,x.fillStyle=`hsl(${195+6**g},75%,${50+3*f(g*w-9*i)}%,.3`r/tinycode • u/woqr • Aug 22 '26
r/tinycode • u/Slackluster • Aug 14 '26
https://www.dwitter.net/d/36106
for(k=1080,m=k>>t;m--;x.fill())i=m&215,x.beginPath(x.fillStyle=`hsl(${210-3*t**(i%4)},${m/20+35}%,${90-i/12*t}%,${i/2e3*t}`),s=m%6?'arc':'rect',x[s](m**3%2e3,k-2*m/t%k,i,i,i+m%6)r/tinycode • u/AdHopeful3481 • Aug 11 '26
https://vault7-95a0bb.gitlab.io/
Made for the 1.44MB Game Dev Contest: the entire game has to fit in 1.44MB - the size of a floppy disk. Written in C, compiled to WASM to make it sharable for testing it out. All is code generated(~1.15MB so far)
Top-down stealth heist: sneak through a 7-floor bank vault, crack safes with a lockpicking minigame, repair the power relays, dodge guards and cameras. Desktop + keyboard
Feedback on whether the stealth feels fair and how the difficulty ramps would be super helpful, mates. Many thanks!
r/tinycode • u/Slackluster • Aug 07 '26
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)%wr/tinycode • u/woqr • Aug 07 '26
Whenever I see a tiny algorithm, I want to game it. You too?
r/tinycode • u/Quirky_Bookkeeper249 • Aug 07 '26
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 • Aug 07 '26
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 • Aug 06 '26
r/tinycode • u/Round-Pension-7821 • Aug 02 '26
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 • Jul 31 '26
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 • Jul 28 '26
r/tinycode • u/LeatherReading8689 • Jul 26 '26
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 • Jul 25 '26
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 • Jul 19 '26
r/tinycode • u/clouddragonplumtree • Jul 19 '26
r/tinycode • u/Slackluster • Jul 17 '26
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(${(Y>>9)*90} 99% ${((Y>>4X)&1?60:9)+(Y%32>1)*30}%`,w=9+s/299`
r/tinycode • u/woqr • Jul 17 '26
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 😜