virtueone            
  home     support     info  

 


                
Maze Generation - Posted on: 6/5/2018   [Uncategorized]



I'm feeling annoyed... I didn't expect maze generation to be such a difficult subject to comprehend...

Though some of the issues I'm having are directly related to Unity, for example associative arrays, which nearly all of the code examples I've seen use, but I couldn't get to work with Unity. I tried Hashtables and multi-dimensional arrays, but just got "object" errors or "slicing" errors.

So, instead, I'm using integers for all datatypes. For example: DirectionsArray = int[0,1,2,3], which refers to directions North, East, South, West. Whereas you would typically want to use an associative array, like: N => 0 etc.

While I'm still struggling with the input, I got the output working (shown in the screenshot above). I'm sure the problem has something to do with setting the opposite direction recursively... I'm still trying to understand how that method works. As you can see, I'm getting maze-like patterns, but definitely not working as intended. I really hope I'm smart enough to figure this out.




<< Back to main news page


     
PATREON RESOURCES/LINKS 10/28/2023
PATREON RESOURCES/LINKS
Tropical Scene 8/1/2023
I made a tropical scene in Unity, just for fun.
Skybox AI 6/26/2023
I heard about this AI skybox generator and did a few tests in Unity.
Bobsled Game 3/7/2022
I recently watched the olympic bobsled event and got inspired to make a bobsledding game...
3D Viewer 1/1/2022
I made a simple program in Unity for viewing my 3d objects.
New 3d scene... 8/10/2021
A new scene I made in Blender3D...
Blender... 8/3/2021
I made some trees...
3d scene... 7/27/2021
A landscape scene I made in Blender...
Blender grass... 7/16/2021
An updated image of the different types of grass I made in Blender.
Grass... 7/14/2021
Different styles of grass...
Site created and maintained by kreediddy. © 2010-2024. kreediddy.