Skip to main content

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

Froggo 1KView game page

Frogger clone in PICO-8 in just 1024 compressed bytes
Submitted by Liam — 26 days, 21 hours before the deadline
Add to collection

Play game

Froggo 1K's itch.io page

Compressed Bytes used
1020

Source Code (OPTIONAL)
si=0
function ll(sd)
fga=tonum("0x"..sub(sd,1,1))bga=tonum("0x"..sub(sd,2,2))
fgb=fga<<4
bgb=bga<<4
addr=512*(si\16)+4*(si%16)
for n=1,16,2 do
v=n\2sc=tonum("0x"..sub(sd,n+2,n+3))csd={}
for csi=1,4 do
csv=(csi-1)*2
csd[csi]=(bga*(((~sc)&(2^csv))/(2^csv)))|(bgb*(((~sc)&(2^(csv+1)))/(2^(csv+1))))
|(fga*((sc&(2^csv))/(2^csv)))|(fgb*((sc&(2^(csv+1)))/(2^(csv+1))))
end
poke(addr+v*64,csd[1],csd[2],csd[3],csd[4])
end
si+=1
end
f={"\^:24bdff7e3c7ec366","\^:66c37e3c7effbd24","\^:46ecbf3e3ebfec46","\^:6237fd7c7cfd3762"}
ll"613300000000ff0000"
ll"610000ff0000000033"
ll"6100000000ff000000"
ll"b3aa7f490440022000"
ll"b30010024004497faa"
ll"c1000c728100186681"
ll"d80607010000000606"
ll"d80000000000000606"
ll"d80000000000006060"
ll"94ff000000000000ff"
ll"94ff000000000000ff"
ll"94ff000000000000ff"
w="4535453120341203"x=56y=120q=4at=""dt=0cci=128dd=0cd=0::_::cls()srand(cci)
pal(3,(cci-6)%15)
pal(11,(cci)%15)
for wti=1,16 do
wt=w[wti]
wtn=tonum(wt)
for tti=1,16 do
spr(wtn,xv,(wti-1)*8)xv=8*(tti-1)
end
if(wtn>=0 and wtn<=2 or wtn==5) then
pal(8,rnd(15))
tr=time()*(rnd()+cd)
stu=6exp=true
if(wtn==5)stu=9exp=false tr*=.4
kp=-24+(tr*176%176)
if(wt=="0") then
kp=128-kp
spr(stu,kp,(wti-1)*8,3,1,false)
if (y\8)+1==wti and (x+8>=kp and x<=kp+16)==exp then
if(dt==0)at="\^w"dt=time()dd+=1?"\ac0c0c0c0"
end
else
spr(stu,kp,(wti-1)*8,3,1,true)
if (y\8)+1==wti and (x-8<=kp+16 and x-8>kp-8)==exp then
if(dt==0)at="\^w"dt=time()dd+=1?"\ac0c0c0c0"
end
end
end
end
if dt>0 and time()-dt>1 then
dt=0y=120at=""
end
b=0
if(dt==0) b=btnp()%16
t="\^-t\^-w"..at
xa=(b&2)*-4ya=(b&8)*-1
if(b>0)q=b ?"\as5c0a0"
if(b&3>0)t="\^w"
if(b&12>0)t="\^t"
x=mid(0,x+(b&2)*4-(b&1)*8,120)
y=mid(0,y+(b&8)-(b&4)*2,120)
s=mid(0,(q&1)*3+(q&2)*2+(q&4)/4+(q&8)/4,4)
?t..f[s],x+xa+1,y+ya,0
?t..f[s],x+xa-1,y+ya,0
?t..f[s],x+xa,y+ya,11
if(y==0)y=120cci+=1cd+=.05?"\acdefgggg"
?"lvl:"..(cci-128).." deaths:"..dd.." difficulty:"..cd,0,0,10
flip()goto _

Leave a comment

Log in with itch.io to leave a comment.

Comments

Submitted(+1)

This is a great frogger clone, it looks really good given the limitations you worked under. I am admittedly not very good at reflex-based games, but I certainly appreciate the choice of game and how you presented it. Good entry!

Submitted

Impressive minimization of frogger.  Was caught off-guard with logs moving causing the frog to drop.  Maybe something more like the aligators in the original frogger, that pop in and out?

Developer (1 edit)

Making the logs not move the frog + making them basically the exact same code as the cars that move across the screen, made it easier to compress. That's the short gist of it. I could've made them carry the frog like in the games, or pop in and out like alligators, I just didn't have the space to. I was insistent on having an increasing difficulty and some form of palette swaps instead as features.

The logs are coded as cars, but with inverted collision logic if it's a log. AKA, if you're anywhere but the log, you ded.

Submitted(+1)

great game!