Search Unity

Dynamic 3d Maze Generator

Discussion in 'Scripting' started by Maharjan_Dinesh, Jan 22, 2020.

  1. Maharjan_Dinesh

    Maharjan_Dinesh

    Joined:
    Sep 30, 2015
    Posts:
    6
    Hello Unity Developers,

    I am stock in dynamic 3D maze generator for my game. Do any one have idea about dynamic maze generator using some algorithms?.

    Thank you!!
     
  2. csofranz

    csofranz

    Joined:
    Apr 29, 2017
    Posts:
    1,049
    I've found a nice Workaround that works well for me: create multiple 2D mazes for multiple levels, and use pre-defined 'connectors' (up/down) that the maze generator solves for so that the connected maze is guaranteed to have a solution. Then, add some more random connectors between the levels. That way, you can reduce the 3D maze problem to a succession of 2D mazes.
     
    Maharjan_Dinesh likes this.
  3. Maharjan_Dinesh

    Maharjan_Dinesh

    Joined:
    Sep 30, 2015
    Posts:
    6
    Thanks!
     
unityunity