this is a Random maze generator that i made :D. WASD or Arrow keys to move. Im sorry that it takes a while to make a maze :/ let me know how to fix if u know. -=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-- DO NOT PLAY IN TURBO MODE. MAZE WILL BREAK. -=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--
So basically how this works is a sprite with 4 colors on 4 sides tests each cell if its visited before or if it hasn't. then it counts up the cells it can go to and randomly selects a cell to go to. when it selects the cell it wants to go to it adds the cell and the wall it passed to the maze and makes a path. after a path is created it goes to the start changes its Y axis and does the whole process over again.