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

The prisoner of SokobanView game page

Escape from Sokoban! A game that fits in 2 tweets.
Submitted by adriendittrick — 6 days, 8 hours before the deadline
Add to collection

Play out of jail

The prisoner of Sokoban's itch.io page

How many characters did you use?
559

Include your code here, if you'd like to show it off!
draw_set_halign(1) if x==0 {e=128 f=72 w=0 x=-1 y=x repeat 99 {x+=1 y=-1 repeat 99 {y+=1 t[x,y]=choose(0,1)}} x=49 y=x t[x,y]=0} a=0 b=0 c=mouse_x-e d=mouse_y-f if mouse_check_button_pressed(mb_left) {h=abs(c) i=abs(d) a=(h>i?sign(c):0) b=(i>h?sign(d):0)} if x<2 or y<2 or x>96 or y>96 w=1 else { if t[x+a,y]==0 x+=a else {if t[x+a*2,y]==0 {t[x+a,y]=0 t[x+a*2,y]=1}} if t[x,y+b]==0 y+=b else {if t[x,y+b*2]==0 {t[x,y+b]=0 t[x,y+b*2]=1}} u=0 v=0 repeat 97 {u+=1 v=0 repeat 97 {v+=1 draw_text(e+(u-x)*16,f+(v-y)*16,t[u,v]==1?"X":" ")}}} draw_text(e,f,w?"Win":"@")

Leave a comment

Log in with itch.io to leave a comment.

Comments

Submitted

Fun! I HAVE ESCAPED!