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

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.
Another random environment... 10/14/2018
I posted a video clip of the new environment to Twitter and got a lot of positive feedback...
Another random environment... 10/12/2018
I added a snippet of code from my terrain generation script, just to quickly add some more rocks and trees to this new environment.
Another random environment... 10/12/2018
I'm trying some different styles/techniques in another random environment.
Improved water caustics fx... 10/10/2018
I made a couple more improvements to the water caustics effect...
Improving the water caustics fx... 10/9/2018
I had a great idea to improve the recent water caustics effect...
Cloud shadows... 10/5/2018
I finished the new "cloud shadows" effect...
Projector problems... 10/3/2018
I've been doing a lot of work with the Projector component in Unity, and figured out how to do some really cool things. But, I've also discovered that its a very finicky feature...
Site created and maintained by kreediddy. © 2010-2018. kreediddy.