After 6h of work, I managed to get something usable :p
It creates really nice mazes, but for the moment I still get some stack too deep error, due to the algorithm I use (a recursive one).
But it works.
I need to run some test to get the limitations, so far, the stack error happens 50% of the time, for a 67*67 maze.
The generation itself is not taking a long time^^ like 1s, for this size of maze.
It allow for the moment:
- to create maze inside events.
It needs
- a start point, a end point
- dimensions
- the tile id for the walls.
- the layer for where to draw the walls.
See you in some test!
It creates really nice mazes, but for the moment I still get some stack too deep error, due to the algorithm I use (a recursive one).
But it works.
I need to run some test to get the limitations, so far, the stack error happens 50% of the time, for a 67*67 maze.
The generation itself is not taking a long time^^ like 1s, for this size of maze.
It allow for the moment:
- to create maze inside events.
It needs
- a start point, a end point
- dimensions
- the tile id for the walls.
- the layer for where to draw the walls.
See you in some test!