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

Modeling and other updates... 7/21/2018
More modeling...
Modeling and other updates... 7/20/2018
I created another color level and more models...
Updates... 7/19/2018
I created a script that rotates, scales, or positions an object using a sin() function...
Updates... 7/15/2018
Just a cute screenshot of a NPC-to-Player interaction.
Models 7/15/2018
I created a few more trees and a couple more animated abstract objects.
Models 7/14/2018
Here's a short animated GIF showing the motion I've added to the new models.
Models 7/13/2018
I created a few new models for low-poly environments...
Colorful Low-Poly Game updates... 7/8/2018
I made a few updates to the low-poly project...
Maze Generation 6/11/2018
Since the mesh-generated walls don't have textures, I tried to place some posters on them...
Maze Generation 6/9/2018
Updates to the maze generation experiment...
Site created and maintained by kreediddy. © 2010-2018. kreediddy.