Play game
Star Fall 500's itch.io pageHow many characters of code did you use?
500
Include your code here, if you'd like to show it off!
_set_fps(60)x=60v=0w=0p={}l=5f=120y=f::_::cls(1)rect(0,126,127,127,3)?t()\1,10
?l
if(#p<=t()\20)add(p,{t=1,x=rnd(f),y=0,v=0})
b=btn()x=mid(x+(b&2)/2-(b&1),f)y+=v
w-=.1v+=.1if y>=f do
y=f
v=0if(btnp(4))v=-2
end
for q in all(p)do
r=1?("β
π
ΎοΈ")[q.t],q.x,q.y
c=abs(q.x-x)<6and abs(q.y-y)<4if q.t<2do
q.y+=q.v
q.v+=.02if c do
r=0elseif q.y>=f do
q.y=f
q.t=2q.u=sgn(x-q.x)end
else
q.x+=q.u
if(w<0and c)l-=1w=6
if(mid(-8,q.x,128)!=q.x)r=0
end
if(r<1)del(p,q)
end
?"π",x,y,w<0and 7or 8
if(l<1)run()
flip()goto _
Leave a comment
Log in with itch.io to leave a comment.
Comments
Such a neat concept that you're too engrossed playing to even wonder "why do stars turn into barrels when they hit the ground?"! π
Got quite far, but alas, didn't note score before it reset.
Fun entry! π
Sorry, the highscore save was standard in the 560 character and 1K limit, but I'm having a hard time including it in 500 character games. As for "why do stars turn into barrels when they fall to the ground?", no one knows. I bet scientists will continue studying this great mystery for many years to come. Thanks! π
This has a great gamefeel for something so simple, and I learned a few code tricks from it, so thanks!
Thank you! I was surprised that such a simple game could have so much playability. I'm also glad the code could be useful to someone else.