r/tinycode • u/Slackluster • Sep 04 '26
JavaScript The Depths of JavaScript: Minesweeper in 247 Bytes
r/tinycode • u/Slackluster • Sep 04 '26
r/tinycode • u/Slackluster • Jun 05 '26
https://www.dwitter.net/d/35500
for(x.reset(i=F=0);i++<9;)for(j=1e3,D=t-9*i;j--;x.fillRect(j%10*5+M(D*=D<0)+300*(i/3+1+S(D?9*i:t)+D*C(9*i)),400+j/5+M(),5,2))M=_=>D*T(j*F++)r/tinycode • u/Slackluster • Sep 10 '26
r/tinycode • u/EvanHahn • Jul 19 '26
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 • Mar 13 '26
https://www.dwitter.net/d/35031
for(w=60,i=2e3;i--;x[f](X*w+30+(X>15?1:-1)*z-r,Y*w+30+(Y>8?-1:1)*z-r,r*=2,r))X=(i>>1)%33,Y=i/66|0,i%2&&x[f='fillRect'](X*w,Y*w,w,w),x.fillStyle=X%2^Y%2?R():'#fff',r=5+5*C(t-Y/9),z=(i%2-.5)*35r/tinycode • u/Slackluster • May 30 '26
https://www.dwitter.net/d/35427
for(k=315-60*C(t);X=T(Y=T(T=n=>~n*k-Y-X&2047));x.fillRect(X,Y,25,9))x.fillStyle=R(p=T(a=X-k)&&9*T(b=Y-k)<a*a+b*b?b>(a+b)**2?215:170:k,p,240)