Skip to main content

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

Falling BallsView game page

Submitted by joeschmoeish (@joeschmoeish) โ€” 18 days, 2 hours before the deadline
Add to collection

Play game

Falling Balls's itch.io page

Characters/Bytes used
1024 bytes

Source Code
function _init()
g=0.2x=64y=125a={}t=0d=1s=0k=2
n={"d3","c3","b3","a3","g2","f2","e2","d2","c2","b2","a2","g1","f1","e1","d1","c1"}
end

function _update()
if(k==0)then
if(btn(0))x-=2
if(btn(1))x+=2
if((x)>127)x=127
if((x)<0)x=0
for b in all(a) do
b.x+=b.dx
b.dy+=g
b.y+=b.dy
if((b.y+b.r)>128) then
if((b.x>x-8)and(b.x<x+8))then
k=1
?"\ab3b3b3b3b3b3b3"
?"\ae4f4e4f4e4f4e4"
end
b.y=128-b.r
b.dy*=-0.9s+=1
?"\ac1"..n[ceil(b.r-2)]
end
if((b.x-b.r)>128)del(a,b)
end
t+=1
if((t%(60-d))==0)then
b={}b.r=rnd(16)+2
b.x=rnd(32)-64b.y=rnd(64)b.dy=0
b.dx=(x-b.x)/sqrt((2*(127-(b.y+b.r)))/g)add(a,b)
end
if((t%(60))==0)d+=1
if(d>59)d=59
end
if(k==2)then
if(btnp(5))k=0?"\ac2.e2.g2.d2.f#2.a3"
end
if(k==1)then
if(btnp(5))_init()
end
end

function _draw()
cls(7)
if(k==0) then
?"์›ƒ",x-3,y-2,0
for b in all(a) do
circfill(b.x,b.y,b.r,7)
circ(b.x,b.y,b.r,0)
end
?"score: "..s,2,2
end
if(k==1)then
?"score: "..s,48,42,0
?"press x",50,68,0
?"โ–‘",x-3,y-2,8
end
if(k==2)then
?"\^w\^tfalling balls",12,28,0
?"press x to start",30,68,0
end
end

Leave a comment

Log in with itch.io to leave a comment.

Comments

HostSubmitted

This is really neat!
Cool that u got title, sfx and score screen in also
Nice one! ๐Ÿ‘

P.S. - The use of symbol for blood splatter is GENIUS! ๐Ÿ˜‚๐Ÿ‘Œ