I like making tiny apps and games.
t=t*60|0
x.fillStyle=t?t>2?'#fff':t>1?'#D13':'#028':'#FC0'
x.fillRect(0,t*360,2e3,360)
t-2?x.font='7em"':x.translate(960,760)
t>2&&t<11&&x.fillText('\u2605',-370,-70)&x.rotate(.36)
t=t*60|0
x.fillStyle=t?t>2?'#fff':t>1?'#D13':'#028':'#FC0'
x.fillRect(0,t*360,2e3,360)
t-2?x.font='7em"':x.translate(960,760)
t>2&&t<11&&x.fillText('\u2605',-370,-70)&x.rotate(.36)
itch.io/jam/littlejs...
itch.io/jam/littlejs...
js1024.fun/demos/2025/1...
js1024.fun/demos/2025/1...
I made a Base 69 storage method that excludes URL unsafe characters so that you can share your 2-color pixel art creations.
👉 Storage method extracts and combines three 3-bit values to each character.
#tinycode #javascript
I made a Base 69 storage method that excludes URL unsafe characters so that you can share your 2-color pixel art creations.
👉 Storage method extracts and combines three 3-bit values to each character.
#tinycode #javascript
#indiedev #gamedev #indieweb #creativecoding #vanillajavascript
#indiedev #gamedev #indieweb #creativecoding #vanillajavascript
c.width|=G=Y=>X%1*S(X^Y)+S(X-1^Y)*(1-X%1)
for(i=2e4;Y=i--/2e3;x.arc(A,B,S(A>>7|Y*5)<0||40+i%50,a=(G(Y,X=A/99+t*3)*(1-Y%1)+Y%1*G(Y+1,X)-9-i%.7)/5,a))x.moveTo(A=i**3.3%2e3,B=i/16-i%99)
x.stroke()
c.width|=G=Y=>X%1*S(X^Y)+S(X-1^Y)*(1-X%1)
for(i=2e4;Y=i--/2e3;x.arc(A,B,S(A>>7|Y*5)<0||40+i%50,a=(G(Y,X=A/99+t*3)*(1-Y%1)+Y%1*G(Y+1,X)-9-i%.7)/5,a))x.moveTo(A=i**3.3%2e3,B=i/16-i%99)
x.stroke()
#tinycode #javascript in 183b
with(x)for(reset(w=i=64);i--;)fillStyle=(B=(r=~~(i/8))%2-i%2)?"#333":"#AAA",fillRect(X=i%8*w,Y=r*w,w,w),font="4em'",fillStyle=B&&r<3?"red":"#000",B&&(r<3||r>4)&&fillText("⏺",X+5,Y+55)
#tinycode #javascript in 183b
with(x)for(reset(w=i=64);i--;)fillStyle=(B=(r=~~(i/8))%2-i%2)?"#333":"#AAA",fillRect(X=i%8*w,Y=r*w,w,w),font="4em'",fillStyle=B&&r<3?"red":"#000",B&&(r<3||r>4)&&fillText("⏺",X+5,Y+55)
for(i=3e3,C(d*t)>.999?x.fillStyle=`hsl(${d**3%i} 99%${C(d)*40+40}%`:R=0;i--;)x.fillRect(i,R+t*99,.05,R+=C(i*i*++d))}{d=Date.now()
for(i=3e3,C(d*t)>.999?x.fillStyle=`hsl(${d**3%i} 99%${C(d)*40+40}%`:R=0;i--;)x.fillRect(i,R+t*99,.05,R+=C(i*i*++d))}{d=Date.now()
with(x)for(j=c.width|=0;j--;rotate(S(j**3)/9-.01),translate(0,9))for(i=6,a=j+t*60|0;i--&&T(a*a)>6;beginPath(fill()))ellipse(S(a)*30,...i>2?[0,30,1,S(i*2+j/9)]:[i*20-20,i-1?8:4,i>1?7:15,0],0,9)
with(x)for(j=c.width|=0;j--;rotate(S(j**3)/9-.01),translate(0,9))for(i=6,a=j+t*60|0;i--&&T(a*a)>6;beginPath(fill()))ellipse(S(a)*30,...i>2?[0,30,1,S(i*2+j/9)]:[i*20-20,i-1?8:4,i>1?7:15,0],0,9)
x.fillRect(4e3,2400-(t*20|0)*40,-8e3,2)
x.rotate(1.0472)
x.fillRect(4e3,2400-(t*20|0)*40,-8e3,2)
x.rotate(1.0472)
t?t*=60:d=Date.now()%1e7
for(i=w=2e3;i--;)for(j=9;j--;x.fillRect((i-t)*2+960,j*16+t+i-z%141-512,2,16))x.fillStyle=`hsl(${z=(i>>4&t>>4)*9|d},${z%99}%,${(i%8<7?t%8<7?34:59:9)+z%30+i%8-t%8-j*9}%)`
t?t*=60:d=Date.now()%1e7
for(i=w=2e3;i--;)for(j=9;j--;x.fillRect((i-t)*2+960,j*16+t+i-z%141-512,2,16))x.fillStyle=`hsl(${z=(i>>4&t>>4)*9|d},${z%99}%,${(i%8<7?t%8<7?34:59:9)+z%30+i%8-t%8-j*9}%)`
It leaves me little mental energy to code. I hope to find a balance as I keep this schedule going.
Anyone else an athlete and coder?
It leaves me little mental energy to code. I hope to find a balance as I keep this schedule going.
Anyone else an athlete and coder?
🕹 Play here: dev.js13kgames.com/2024/games/1...
👉 It's a top-down tank-controls action shooter game made with a custom game engine in JavaScript.
🙏 Let me know what you think!
🕹 Play here: dev.js13kgames.com/2024/games/1...
👉 It's a top-down tank-controls action shooter game made with a custom game engine in JavaScript.
🙏 Let me know what you think!