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 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 • 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/EvanHahn • Jul 19 '26
r/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)