Skip to main content

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

MAZEView game page

Infinite mazes to enjoy in 500 characters
Submitted by The4thCircle (@The4thCircle) — 5 days, 15 hours before the deadline
Add to collection

Play game

MAZE's itch.io page

How many characters of code did you use?
497

Include your code here, if you'd like to show it off!
g=pget s=pset r=rnd f=flr
h=10
::b::cls(0)rect(0,0,126,126,4)line(127,1,127,127,2)line(1,127,127,127,2)p={}
if(h>4)h-=1
for u=0,3843 do add(p,u)end
while #p>0 do
d=1<<f(r(h))i=1+f(r(#p))u=2+2*f(p[i]/62)v=p[i]%62*2+2
while g(u,v)==0 do
s(u,v,4)u+=(d&1)-((d>>2)&1)v+=((d>>1)&1)-((d>>3)&1)end
deli(p,i)end
x,y=1,1
s(125,125,12)::l::d=btn()u=x+((d>>1)&1)-(d&1)if(g(u,y)==4)u=x
v=y+((d>>3)&1)-((d>>2)&1)if(g(u,v)==4)v=y
if(g(u,v)==12)print("\asfcefcecfcaa")goto b
s(x,y,0)x,y=u,v
s(x,y,10)flip()goto l

Leave a comment

Log in with itch.io to leave a comment.

Comments

No one has posted a comment yet