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


     
Euphorica updates published... 12/13/2018
After working on updates for a couple weeks, I've published the latest version of Euphorica for my patrons.
Euphorica updates... 12/12/2018
Even more updates and improvements to Euphorica...
Euphorica updates... 12/10/2018
More updates and improvements to Euphorica...
Euphorica updates... 12/9/2018
More updates to the Euphorica project...
Euphorica updates... 11/26/2018
I resurrected the Euphorica project...
What now? 10/28/2018
I am constantly conflicted between wanting to make something realistic versus something simple and stylish. I have so many different versions of this project now... its silly.
Improved Gem Shader... 10/28/2018
I updated the gem/crystal shader again...
Another random environment... 10/18/2018
I made several minor improvements to this new stylish environment.
Another random environment... 10/17/2018
I made lots of improvements to this new environment...
Improved Gem Shader... 10/17/2018
I updated the Gem Shader so it supports Fog and blends better with the water.
Site created and maintained by kreediddy. © 2010-2018. kreediddy.