Skip to main content

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

Fly SwatterView game page

Endlessly swat bugs.
Submitted by Saffrona (@saffrona_) — 1 day, 4 hours before the deadline
Add to collection

Play game

Fly Swatter's itch.io page

How many characters did you use?
559

Include your code here, if you'd like to show it off!
x=9
y=9
t=0
w=x+9
z=y-3
a={}
i=1
s=0
function TIC()cls(8)if btn(0)then y=y-2 end
if btn(1)then y=y+2 end
if btn(2)then x=x-2 end
if btn(3)then x=x+2 end
if btn(4)then t=0 h=0 end
rect(x,y,15,20,3)rect(x+6,y,3,45,3)for j,k in pairs(a)do
circ(k.x,k.y,2,0)k.x=k.x+k.d
end
rect(w,z,15,20,7)rect(w+6,z,3,45,7)if h==0then w=x z=y
else w=x+9 z=y-3 end
for j,k in pairs(a)do
if k.x>x and k.x<x+15 and k.y>y and k.y<y+20 and h==0then
s=s+1
a[k.e]=nil
end end
print(s,5,5,0)t=t+1
if t>5then h=1 end
if t%20==0then
a[i]={x=0,y=math.random(9,130),d=1,e=i}
i=i+1
end end

Leave a comment

Log in with itch.io to leave a comment.

Comments

Nice little game! I included it in my TweetTweetJam 2 compilation video series, if you’d like to take a look. :)

Developer

Thank you for playing and nice video! And yes, the game is just you endlessly getting points =) I'm still new to this so I didn't know how to fit in a gameover with the limits.