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

PicobanView game page

Sokoban in 560 characters or less
Submitted by nextlevelbanana (@nextlevelbanana) — 3 days, 17 hours before the deadline
Add to collection

Play game

Picoban's itch.io page

How many characters of code did you use?
553

If you're comfortable with it, paste your game code here, so we can marvel at your achievement!
function c(a,d)
v=b[x+a][y+d]
w=b[x+2*a][y+2*d]
if(v==t or v==u and w!=e) return e
if(v==u)b[x+2*a][y+2*d]=u
x+=a
y+=d
end
x,y,b,s,h,q,t,u,e,f=4,4,{},0,{},btnp,"█","▒",nil,12
for x=1,f do
b[x],h[x]={},t
for y=1,f do
if y<3 or y>10then b[x][y]=t
else
l=rnd(1)
if(l<.1)b[x][y]=u
if(l>.9)b[x][y]=t
end
end
end
b[1],b[2],b[11],b[f]=h,h,h,h::_::cls()b[x][y]=e
if(q(0))c(-1,0)
if(q(1))c(1,0)
if(q(2))c(0,-1)
if(q(3))c(0,1)
for x=1,f do
for y=1,f do
?b[x][y] or "",x*8,y*8,8
end
end
if(b[8][8]==u)s+=1
b[8][8]=e
?"❎",64,64,9
?"웃",x*8,y*8
?s,2,2
flip()goto _

Leave a comment

Log in with itch.io to leave a comment.

Comments

No one has posted a comment yet