Play game
Tweet Jump's itch.io pageHow many characters of code did you use?
546
If you're comfortable with it, paste your game code here, so we can marvel at your achievement!
-- tweetjump
-- by @egordorichev
::l::
f,z,a,y,vy,x,vx,s=rnd,flr,{},0,0,60,0,0
for i=0,15 do
add(a,{x=z(f(16))*8,y=z(f(120)/8)*8,c=f(3)+5})
end add(a,{x=60,y=80,c=7})::_::
if(btn(⬅️))vx-=0.4
if(btn(➡️))vx+=0.4
vx*=0.8
x+=vx
if(x<-4)x=132
if(x>132)x=-4
if(vy<0 and pget(x+4,69)~=0)vy=3
vy-=0.1
y+=vy
cls()for n in all(a) do
u=z(n.y+y)rectfill(n.x,u,n.x+7,u+2,n.c)if n.y+y>132 then
n.x=z(f(16))*8
n.y=z((-y-4)/8)*8
end
end
print("웃",x,64,8)s=max(s,z(y/10))print(s,1,1,10)if y-s*10<-64 then print("game over",46,60,9)
if(btn(❎))goto l end
flip()goto _
Leave a comment
Log in with itch.io to leave a comment.
Comments
No one has posted a comment yet