Play game
Tweet Tweet Driller's itch.io pageHow many characters did you use?
559
Include your code here, if you'd like to show it off!
r=rectfill b=btnp function d(x,y,c) if(y>16or c<1or y<1)return if(m[y][x]==c)p+=1m[y][x]=0 d(x-1,y,c)d(x+1,y,c)d(x,y+1,c)d(x,y-1,c) end x=1q=0h=10::s::y=1 if(m)m={m[16]}else m={{0,0,0,0,0,0,0,0}} for i=1,15 do k={}for j=1,8 do add(k,flr(rnd(4))+1)end add(m,k)end::a::p=0 if(h<0)run() if(y>15)goto s if(m[y+1][x]==0)y+=1 if(b(0)and m[y][x-1]==0)x-=1 if(b(1)and m[y][x+1]==0)x+=1 if(b(3))d(x,y+1,m[y+1][x])h+=p/2-2q+=p for i=1,16 do for j=1,8 do r((j-1)*16,(i-1)*8,j*16,i*8,m[i][j]*7)end end ?'웃',(x-1)*16+4,(y-1)*8+3,2 ?q,0,3 r(0,0,h*12,1,10)flip()cls()goto a
Leave a comment
Log in with itch.io to leave a comment.
Comments
Fun lil' driller!
Thanks!