Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
A jam submission

Machine Gun Turret (TweetTweetJam 7)View game page

Destroy the meteorites before they hit the ground. A game in 558 characters of code for TweetTweetJam 7.
Submitted by SkyBerron (@SkyBerron) — 2 days, 7 hours before the deadline
Add to collection

Play game

Machine Gun Turret (TweetTweetJam 7)'s itch.io page

How 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.

Comments

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.

DeveloperSubmitted(+1)

Thanks for playing. Most of the games I make tend to be very fast paced or increase speed with time or benefit from very smooth movement, so setting 60 fps could be the most important part of the code.