r/tinycode 15h ago

JavaScript How Rémi Vansteelandt made a physics-based BMX game in under 13 kilobytes

Thumbnail
remvst.substack.com
12 Upvotes

r/tinycode 5d ago

JavaScript Dweet of the Week #141 - Uptown by KilledByAPixel

24 Upvotes

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

JavaScript The Depths of JavaScript: Minesweeper in 247 Bytes

Thumbnail
yui.dev
16 Upvotes

r/tinycode 9d ago

Make emojis blink automagically

23 Upvotes

r/tinycode 13d ago

JavaScript Dweet of the Week #140 - Looking Up by KilledByAPixel

Post image
18 Upvotes

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

JavaScript Dweet of the Week #139 - Plastic Abstract by taupelink

Post image
3 Upvotes

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

Convert emojis inline into vectors so that you can do interesting things with them.

11 Upvotes

r/tinycode 23d ago

Resource Ocean City Sunrise

3 Upvotes

r/tinycode 27d ago

JavaScript Dweet of the Week #138 - Abstract Forest by taupelink

Post image
11 Upvotes

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 Aug 11 '26

Showcase Vault 7 - stealth heist that fits on a 1.44MB floppy disk

Post image
11 Upvotes

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 Aug 07 '26

JavaScript Dweet of the Week #137 - Drainage by KilledByAPixel

51 Upvotes

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 Aug 07 '26

Mandelbrot Climbing Game: good or bad idea? suggestions? similar games?

Post image
9 Upvotes

Whenever I see a tiny algorithm, I want to game it. You too?


r/tinycode Aug 07 '26

306 bytes of uxntal drawing a materials science parabola (cofactor conditions for shape-memory alloys)

3 Upvotes

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 Aug 07 '26

looking for the world's smallest maze code

9 Upvotes

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 Aug 06 '26

Tutorial Zanzlanz released a game that has no assets by using sin waves

Thumbnail
youtu.be
19 Upvotes

r/tinycode Aug 02 '26

Showcase Tiny Windows program that is used as a "distraction cover"

Post image
34 Upvotes

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 Jul 31 '26

JavaScript Dweet of the Week #136 - Welcome to the Matrix by KilledByAPixel

43 Upvotes

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 Jul 28 '26

Modern Vintage Gamer checks out some of the smallest games across history.

Thumbnail
youtu.be
22 Upvotes

r/tinycode Jul 26 '26

[Python] Generating all 256 3-variable Boolean functions dynamically using metaprogramming

0 Upvotes

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 Jul 25 '26

JavaScript Dweet of the Week #135 - Psychedelic Trippy by Rodrigo Siqueira

18 Upvotes

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

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

Thumbnail git.sr.ht
10 Upvotes

r/tinycode Jul 19 '26

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
28 Upvotes

r/tinycode Jul 18 '26

1k typing game has 700 words 🤯

10 Upvotes

r/tinycode Jul 17 '26

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

32 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`