I’m impressed you set aside enough characters for the _set_fps call! On Lite Raid for the last TweetTweetJam, it was something I couldn’t make space for at all.
Play game
Machine Gun Turret (TweetTweetJam 7)'s itch.io pageHow many characters of code did you use?
558
Include your code here, if you'd like to show it off!
_set_fps(60)h=0m=128::s::x=.25t=0s=0p={}o={}n=0z=1::_::cls(1)t-=.1n-=.01 ?s ?h if(n<0)add(o,{x=rnd(122),y=-8,v=.2})z*=.99n=z b=btn()x-=((b&2)/2-(b&1))/300x=mid(x,.5)a=64b=114rectfill(58,b,72,m,4)c=cos(x)d=sin(x)e=a+c*8f=b+d*8line(a,b,e,f,9) if(btn(4)and t<0)add(p,{x=e,y=f,u=c,v=d})t=2 for q in all(p)do q.x+=q.u q.y+=q.v pset(q.x,q.y,6)a=nil for l in all(o)do if(abs(q.x-l.x-3)<4and abs(q.y-l.y-2)<3)s+=1del(o,l)a=1break end if(a)?"\as8ceg" if(q.y<0or a)del(p,q) end for l in all(o)do l.y+=l.v ?"🅾️\va░",l.x,l.y,11 if(l.y>=m)h=max(s,h)goto s end flip()goto _
Leave a comment
Log in with itch.io to leave a comment.