Mini Missiles
Missiles are raining down! Blow them up with your own missiles and survive as long as you can.
Click to fire a missile. The game automatically resets when you lose.
An attempt at replicating the core mechanics of Atari's Missile Command with as little code as possible, written for TweetTweetJam 8. This game is made with no more than 500 characters of code and no other assets.
w=128poke(24365,3)v=127k={}u=64j={}c=circfill a=add r=rnd::s::cls(1)c(u,w,4,6)for i=#j,1,-1do e=j[i]c(e[1],e[2],16-(abs((e[3])-32))/2,8)e[3]-=1if(e[3]<1)del(j,e)end if(r()>.97)x=r(w)a(k,{x,0,x,0,r(w),w,0,.005}) for i=#k,1,-1do m=k[i]h=m[4]g=m[3]m[2]=h+(m[6]-h)*m[7]m[1]=g+(m[5]-g)*m[7]m[7]+=m[8]x=m[1]y=m[2]if(y>v)c(x,y,20,7)run() if(pget(x,y)==8or m[7]>1)a(j,{x,y,u})del(k,m)?"\ai7e1a" line(x,y,g,h,9)end x=stat(32)y=stat(33)if(btnp(5))a(k,{u,v,u,v,x,y,0,(y+32)*.001}) ?"+",x-1,y-2,7 flip()goto s
Comments
Log in with itch.io to leave a comment.
Nice game! Good job fitting it into 500 characters!
Thanks!
Loved this missle defender style game!! Had a blast; incredible work fitting it into 500 characters!
Thank you for trying it!
Nice submission! Missile defender games are so perfect for TweetTweetJam, I can't believe I haven't seen more of them!
Thanks, pleased you like it!