795 B
795 B
{{{ "planted": "11/2/2020", "repotted": "1/4/2026", "nobreak": "true" }}}
- Orbiting.
r=rnd c=circfill cls()x=32y=32w=1z=0m=10o=96p=96q=-1n=0g=50_set_fps(60)::_:: for i=0,999do j=r(128)k=r(128)c(j,k,1,max(0,pget(j,k)-1))end c(x,y,4,7)c(o,p)d=x-o v=y-p l=d^2+v^2a=g/l/l^.5i=a*m w-=d*i z-=v*i q+=d*i n+=v*i x+=w y+=z o+=q p+=n flip()goto _
#pico8 #tweetjam
gardener's note: I think that this tweet exemplifies what I liked most about pico-8. I wrote this while tuning out a Zoom lecture on Newton's Law of Gravitation in my highschool physics course. In ~an hour I was able to get a satisfying visualization with some basic mathematical backing, without once having to fight some stupid ass low-level display library.
