Race no sun
This Race The Sun partial demake is my first entry to #TweetTweetJam N°3, in Pico8 with a 560 characters limit !
The Goal
You must go as far as possible, with no sun :D
Controls
Use < / > arrow to move your ship
Ctrl + R to restart after crashing
Good luck and have fun !
Code
d={}c=127x=0x7fv=0m=4n=0g=0u=0.02y=band ::★:: cls()z=44while z>8 do w=z*cos(v)t=z*sin(v) o,p=-w-t+m,t-w+n+9 q,r=w-t+m-o,-w-t+n-p+9 for k=0,c,2 do i=bor(y(o,x),shl(y(p,x),7))h=d[i]j=36-cos(o/64)*sin(p/64)*4 if(h==5)j=24 l=32+j/z*24 rectfill(k,l,k+1,c,h)o+=q/64p+=r/64end z-=1end f=bor(y(m-1,x),shl(y(n-1,x),7)) if(d[f]==5)g=1 if g==0then f=0 if(btn(0))m-=1f=-u if(btn(1))m+=1f=u e=shl(y(n,x),7)v=0.7*v+f*0.3 for i=e,e+c do d[i]=6+(flr(n/8)+flr(i/4))%2 end s=flr(e+rnd(c))d[s]=5 d[s+1]=5 n-=1else v+=u ?"dead",56,24,9 end ?-n,1,1,7 ?"☉",58,120,13 flip()goto ★
I post a commented version of the code on lexaloffle official forum
Leave a comment
Log in with itch.io to leave a comment.