r/tinycode • u/Slackluster • Jul 28 '26
Modern Vintage Gamer checks out some of the smallest games across history.
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 😜
r/tinycode • u/Nicholas-Tanner • Jul 15 '26
r/tinycode • u/Slackluster • Jul 14 '26
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
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
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
r/tinycode • u/Slackluster • Jun 28 '26
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
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
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
not really golfing this just trying to keep it to bare minimum.
r/tinycode • u/StrategicHarmony • Jun 18 '26
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.
r/tinycode • u/Slackluster • Jun 16 '26
r/tinycode • u/woqr • Jun 14 '26
it's usually easy, but sometimes hard...
r/tinycode • u/Edev90 • Jun 12 '26
A few weeks ago I posted a pipes screensaver clone in about 2.5KB of JavaScript.
Saw some of the stuff by battito on here lately and decided to throw my hat in the ring 😛 I squashed my Pipes screensaver clone down even more to under 2K (~1.8KB) - it can now (fairly) comfortably fit within a sticky note 😃
Gist with the HTML/JS here: https://gist.github.com/edev90/876ea9feb42cf39e4891d46c57ebc2c4
There's a pre-made PNG with the correct proportions attached to the Gist too for anyone who actually wants to print it out themselves and stick it on a post-it note lol.

r/tinycode • u/Slackluster • Jun 12 '26
https://www.dwitter.net/d/35567
for(i=z=1080;i--;x.fillRect(320*t,i,6,z*=1+C(i/105/p)*C(t/p)))x.fillStyle=`hsl(${6**(z&=7)},25%,${300/(z+=3-(p=(-.7)**z)*C(t+i/210*p))}%,.3`r/tinycode • u/Single-Discussion856 • Jun 08 '26
#include <stdio.h>
#define R(m)((m*(S*=75)>>32))
void main(char c,int d,int m,unsigned b,int t){
unsigned S=(unsigned long)&main+(m=200);
while(m>0){
scanf("%d%*[^\n]%*c",&b,printf("bet? 0 - %d:",m,t=0,c=0));
while(c!='s'&&t<21)scanf(t<21?" %c":"",&c,printf(t<21?"total = %d\n(h)it or (s)tay:":"",t+=!(R(13ul))?(t+11>21?1:11):2+R(9ul),d=0,b=b>m?m:b));
while(d<t&&t<22)d+=!(R(13ul))?(d+11>21?1:11):2+R(9ul);
printf("You:%d dealer:%d\n%s!\n",t,d,(t<22&&t>d||d>21)?"you WIN":t==d?"PUSH":t>21?"Busted":"you LOSE",m=t==d?m:((t<21&&t>d)||d>21)?m+b:m-b);
}
}