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


     
Updates... 2/14/2019
I added one more level to the new labyrinth game...
New level... 2/13/2019
I just added another level...
Graphics... 2/13/2019
I started working on graphics for the logo, splash screen, and icon.
Labyrinth game updates... 2/11/2019
I added two new levels...
Adding sound... 2/9/2019
I started adding sound to the game...
New game experiment... 2/7/2019
I worked more on the box maze experiment...
Another prototype using Motion Controls... 2/6/2019
Trying to take advantage of motion controls and prototyping another new game...
Top-down controls... 2/5/2019
Worked on top-down controls...
Added water caustics... 2/3/2019
I added my water caustics effect to one of the scenes I've been developing in.
New shader updates... 2/3/2019
I fixed an error with the new shaders...
Site created and maintained by kreediddy. © 2010-2019. kreediddy.