03-15-2023, 04:09 PM
(03-14-2023, 02:54 PM)bplus Wrote: Nice start.
First question that comes to mind is how to navigate in such a maze. Up and down arrows OK but left and right, upper and lower? hmm...
Also I wonder if possible to generate a maze that passes through every room like orthogonal maze generators do.
You could navigate with forward, backward and rotation left or right like SMcNiel shows. Use the number keys 1 through 6 is pretty quick and easy as well. You can also just stick with the player and sprites still interacting in a standard x-y grid with the hexes just defining the overall geometry.
I suppose a standard maze generating algorithm that visits every cell would still function as the hex grid is ultimately just a standard grid where the geometry is offset every other column (or row) of cells. The resulting mazes may demonstrate a bias but they'd likely work.