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


     
Unity Post-processing Stack... 2/23/2019
Unity replaced its post-effects a while ago, but I haven't used them yet, until today...
Labyrinth game updates... 2/20/2019
I made minor updates to the user-interface, backgrounds, etc...
New backgrounds... 2/19/2019
I added a couple new backgrounds...
Added a sliding menu... 2/17/2019
I made a simple menu, but decided not to use it...
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...
Site created and maintained by kreediddy. © 2010-2019. kreediddy.