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

Tweet AttackView game page

Click the mouse to destroy the alien probes before they blow up your carrot patches!
Submitted by thavelick — 12 days, 16 hours before the deadline
Add to collection

Play game

Tweet Attack's itch.io page

How many characters of code did you use?
560

Include your code here, if you'd like to show it off!
p=print
s=0;C=100;a=C;ay=24;ad=1
h=130;Q=220
px=96;py=35;pd=1
bx,by,e=Q,Q,0;f=0
t={55,C,150,178,Q}L=5
function TIC()cls()p("/\\",h,h,13)x,y,l=mouse()
if L>0 and l then
bx,by=h,h
f=-2
e=(f/(y-by))*(x-bx)end
p(s)p("@",a,ay,4)p("^",px,py,2)p("|",bx,by,3)
a=a+ad
py=py+.8
px=px+pd
bx=bx+e
by=by+f
if a<0or a>Q then ad=-ad end
if by<0 then g=0 end
for i=1,5 do
c=t[i]if py>h and(px-c)^2<C then
t[i],L=-Q,L-1
end
if c>0 then
p("Y",c,h,7)
end
end
if(px-bx)^2+(py-by)^2<C then s=s+1;px,py,bx,by,e,f=Q,Q,Q,Q,0,0 end
if(py>h or px<0)then py=35;px=a;pd=a%3/3*ad end
end

Leave a comment

Log in with itch.io to leave a comment.

Comments

Submitted

Great stuff. I never knew I wanted to be able to shoot carrots at aliens but now that I have, I realise what I've been missing.

Congrats! (Is this the only submission using Tic-80?)

Developer(+1)

It's the only one I'm aware of. The pico 8 has some extra syntactic sugar that makes concise code a bit easier so I think most folks tend to use that.