Jumping is easy
A simple and easy jumping from platform to platform game. It get faster the further you get. Length: 559 characters.
This game was made for #TweetTweetJam and contains only 559 characters of code, including art. The code is below:
c,x,l,n,m,w=0,0,25,100,127,15
f,r,s,z=rectfill,rnd,sin,mid
::s::c=max(c,x)
t,x,y,v,k,ps=0,0,0,0,.01,{}
for i=1,n do
ps[i]={j=i%2,x=i*l-20,y=64,a=30,p=(.5*i)%1,w=1+r()+i/n}
end
::_::cls()f(0,n,m,m,12)
if(btn(1))x+=1
t+=k
v=min(4,v+.3)
y+=v
if(y>m)goto s
for i=1,n do
p=ps[i]
j,a,b,d=p.j,p.a,p.y,p.x-x
h=b+a*s(p.p+p.w*t)
if j>0 then
f(d-w,h,d+w,h+4,10)
if z(d-w-4,w,d+w-2)==w and z(h,y,h+7)==y then
v,y=min(v,2),h-1
if(btnp(4))v=-4
end
else
?"\\🐱/",d-6,h,4
if(z(d-12,w,d+8)==w and z(h,y,h+6)==y)goto s
end
end
?"s:"..x.." h:"..c,0,0,6
?"웃",w,y-5,15
flip()goto _
Status | Released |
Platforms | HTML5 |
Rating | Rated 4.0 out of 5 stars (1 total ratings) |
Author | SkyBerron |
Genre | Platformer |
Made with | PICO-8 |
Average session | A few seconds |
Inputs | Keyboard |
Leave a comment
Log in with itch.io to leave a comment.