A simple script that connects random blocks. Extended with a not-so-simple script that adds a walker to the maze.
Check it out at: http://2shine.nl/demo/rpg/.
- For every new block an array of options is set
- Based on the position certain options are removed
- Based on the blocks to the left and above certain options are removed
- A random block is selected from what is left
- I'll explain later