Log In  

Cart #starmr-0 | 2020-11-30 | Code ▽ | Embed ▽ | No License

My favorite 2600 game has to be Activision's StarMaster. It had everything: space combat, docking maneuvers, a map. The whole nine yards.

This game only has one of those things. I'd hoped to complete it for TweetTweetJam 5, but I'm just happy it got finished at all. There are a couple tricks I'm pretty proud of in here, and I look forward to the next one!

Code:

cls()l=line
l(9)
?"🐱"
memcpy(0,24576,512)c=-64m=0n=0w=-9a=0z=8s=0j=w::_::camera(c,c)b=btn()x=b&2x-=2*b&2b\=4y=b&2y-=2*b&2for i=0,19do
q=(i^.2+t())%1*96+19p=i^.7pset(q*cos(p)+x*8,q*sin(p)+y*8,6)end
?s..0,c,58
w+=1-w\24>>3sspr(0,0,8,8,m-w/2,n-w/4,w\c*-w,w)j+=1/8if(j<0)o=atan2(m,n)u,v=m,n
u-=x+cos(o)v-=y+sin(o)circfill(u,v,j,10)p=j\8\c
j+=p*17f=-p*pget(u,v)*.9s*=1-f\8p=z%8\7*pget(0,0)z+=1-z\8if(p==9)w=-20f=9s+=10
if(p>9)j=-9f=9s+=5
b&=z
z-=b&8s-=b\8p=80-z*9q=p/2l(p-16,q-8,p,q,8)l(16-p,q-8,-p,q)a+=rnd(.1)-.05m-=x-m\c-cos(a)n-=y-n\c-sin(a)flip()cls(f)goto _

P#84872 2020-11-30 18:54


[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2021-01-18 19:48 | 0.016s | 2097k | Q:26