Froggy Frogger
Controls:
Press [UP] to jump. The longer you press, the higher you jump.
This game was made for TweetTweetJam 2 and is written in exactly 560 characters (fits in 2 Tweets)
Pico-8 Code:
::t::
a=rnd
e=32x=128
function h(x)return(z+x)%7
end
function u(n,m)d=x for i=n,m
do
w=sqrt(c[i]*c[i]+v[i]*v[i])if(w<d)then
d=w
j=c[i]k=v[i]z=i
end
end
end
y=0s=0p=0v={}c={}r={}l=0q=0k=x
for i=0,6 do
c[i]=a(e)v[i]=a(e)-i*e
r[i]=a(8)+7
end
c[0]=0v[0]=-2::_::y-=s
s-=1if y>=0then
u(0,6)v[h(4)]=-x
if(d>r[z])goto t
y=0
if btn(⬆️)then
p=min(p+1,12)
else
s=p
if p>0then
u(h(1),h(1))l+=1
end
p=0
end
else
for i=0,6 do
c[i]-=j/d*2v[i]-=k/d*2end
end
cls(1)for i=0,6 do
circfill(c[i]+64,v[i]+84,r[i],3)end
?'★',61,80+y+sqrt(p),11
?'()',61,84+y,11
?l,64,16,7
flip()goto _
Status | Released |
Platforms | HTML5 |
Rating | Rated 5.0 out of 5 stars (1 total ratings) |
Author | Sørb |
Genre | Platformer |
Made with | PICO-8 |
Tags | 2D, Arcade, jumping, PICO-8 |
Average session | A few seconds |
Inputs | Keyboard, Xbox controller, Gamepad (any) |
Accessibility | One button, Textless |
Comments
Log in with itch.io to leave a comment.
Well that was a cute little game. Good job bro.