Shoot down enemy missiles before they do any harm to the people living in the cities. A tiny TweetTweetJam-8 entry in 500 characters of code.

Code:

_set_fps(60)m=64f=127x=64y=64z=0p={}w={}s=0::_::cls(1)n=m-t()\1?s
?n
if(n<0)run()
b=btn()x=mid(x+b\2%2-b%2,f)y=mid(y+b\8%2-b\4%2,f)if(#w<3)add(w,{x=0,y=16+rnd(m),u=.3+rnd(.3),c=8+rnd(8)})
z-=1if(btn(4)and z<0)z=10add(p,{x=x,y=y,t=0})
for q in all(p)do
u=m+q.t*(q.x-m)v=f+q.t*(q.y-f)?"*",u-1,v-2,10
q.t+=.05if q.t>1then
for r in all(w)do
if(max(abs(u-r.x),abs(v-r.y))<4)q.t=1del(w,r)s+=1
del(p,q)end
end
end
for r in all(w)do
?"➡️",r.x-3,r.y-2,r.c
r.x+=r.u
if(r.x>f)del(w,r)
end?"+\^1",x-1,y-2,6
goto _


Leave a comment

Log in with itch.io to leave a comment.