r/tinycode 3d ago

JavaScript TinyTar.js: library for creating tar files (363 bytes gzipped)

Thumbnail git.sr.ht
10 Upvotes

r/tinycode 3d 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

Thumbnail
tomshardware.com
23 Upvotes

r/tinycode 4d ago

1k typing game has 700 words 🤯

10 Upvotes

r/tinycode 5d ago

JavaScript Dweet of the Week #134 - Skydreams JS1024 Demo by KilledByAPixel

33 Upvotes

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 5d ago

js1024 game: CHASED, the most common childhood BAD DREAM

6 Upvotes

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 😜

https://js1024.fun/demos/2026/30/readme


r/tinycode 8d ago

Showcase Skydreams - my JS1024 entry is a 3D retro 90's fever dream 🌈☁️

Enable HLS to view with audio, or disable this notification

52 Upvotes

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 7d ago

AttoChess: A fully playable x86 DOS chess engine in exactly 278 bytes

Thumbnail
13 Upvotes

r/tinycode 12d ago

JavaScript Dweet of the Week #133 - untitled by Rodrigo Siqueira

Post image
7 Upvotes

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 19d ago

JavaScript Dweet of the Week #132 - js1024 edition 2026 STARTED! by katkip

6 Upvotes

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 20d ago

Hosting js code golfing competition, make your demo under 1 KiB about "dreaming"

Thumbnail
js1024.fun
6 Upvotes

r/tinycode 24d ago

Dweet of the Week #131 - Pipe Dream by KilledByAPixel

20 Upvotes

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 24d ago

Bats at Dusk (534 bytes)

1 Upvotes

r/tinycode Jun 21 '26

Finally - "Boing!" in 64 bytes

Thumbnail
pouet.net
25 Upvotes

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 Jun 19 '26

JavaScript Dweet of the Week #130 - untitled by taupelink

Post image
5 Upvotes

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 Jun 19 '26

Picky Mermaid only eats fish in color order (995 bytes)

5 Upvotes

r/tinycode Jun 18 '26

Showcase Five ~100 line games

Post image
10 Upvotes

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 Jun 18 '26

90 loc jacks or better, stdio only

Thumbnail bitbucket.org
2 Upvotes

not really golfing this just trying to keep it to bare minimum.


r/tinycode Jun 16 '26

1NVADERS - SPACE INVADERS crammed into a 1K ZX81 (2026)

Thumbnail
youtube.com
9 Upvotes

r/tinycode Jun 17 '26

The Craziest Coding Contest Ever

Thumbnail
youtube.com
0 Upvotes

r/tinycode Jun 14 '26

CodeGolfed: a codegolfed golf game in 1020 bytes

Thumbnail
github.com
9 Upvotes

it's usually easy, but sometimes hard...


r/tinycode Jun 12 '26

JavaScript Dweet of the Week #129 - untitled by taupelink

Post image
30 Upvotes

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 Jun 12 '26

StickyPipes - a Pipes screensaver clone that fits on a sticky note

7 Upvotes

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 Jun 10 '26

Music sequencer source fits on a 4x4 card

Thumbnail
github.com
10 Upvotes

r/tinycode Jun 08 '26

low LOC blackjack in C using just <stdio.h>

11 Upvotes
#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);
    }
}

r/tinycode Jun 08 '26

Klondike Solitaire game for curses in 5k of C

Thumbnail
nanochess.org
6 Upvotes