360 Pico 8 Ping Pong
Submitted for the TweetTweetJam 9, it is 482 characters (depending on how you count newlines this might end up be closer to, but not over, 500... BUT it will post in mastodon in one toot so it works!!) There are probably some optimizations I can still make but for now it meets the requirements!
Left and Right to move, keeps track of high-score and current score.
z=0function _init()o=0f=0e={64,64,.5,.5}d=0n=0end function _update60()if(btn(0))f-=.015 if(btn(1))f+=.015 e[1]+=sin(e[3])*e[4]e[2]+=cos(e[3])*e[4]if(d==1)e[3]=e[3]+rnd(.1)-.2e[4]=e[4]*-1.03d=2 if(d==2)n+=1 if(n>20)n=0d=0 if(e[1]>128or e[1]<0or e[2]>128or e[2]<0)_init() end function _draw()cls()i=0u=0while i<.08do for n=-4,0do h=sin(i+f)*(64+n)+64r=cos(i+f)*(64+n)+64pset(h,r,n-6)if(d==0and e[1]\1==h\1and e[2]\1==r\1)o+=1z=max(o,z)d=1 end i+=.001end?"●",e[1]-2,e[2]-3,7 ?o,20,2,9+d ?z,100,2,7 end
Leave a comment
Log in with itch.io to leave a comment.