Example #1
0
    public static void GenerateMapFloor(int w, int h, MapFloorAlgorithm algo)
    {
        ZeroMap();

        if (algo == MapFloorAlgorithm.SingleRoom)
        {
            MapBuilderSingleRoom.Build(w, h);
        }

        else if (algo == MapFloorAlgorithm.RandomWalkers)
        {
            MapBuilderRandomWalkers.Build(w, h);
        }

        else if (algo == MapFloorAlgorithm.CaveLike1)
        {
            MapBuilderCaveLike1.Build(w, h);
        }
        else
        {
            SceneGlobals.Instance.DebugLinesScript.SetLine("Unknown map algorithm", algo);
        }
    }
Example #2
0
 public static void GenerateRandomWalkersMapFloor(int w, int h, int pathSize = 2, int walkerCount = 5, int steps = 60, int minBeforeTurn = 2, int maxBeforeTurn = 5)
 {
     ZeroMap();
     MapBuilderRandomWalkers.Build(w, h, pathSize, walkerCount, steps, minBeforeTurn, maxBeforeTurn);
 }