Exemplo n.º 1
0
        private void makePlain(int layer)
        {
            MazeGenerator mazeGenerator = new MazeGenerator();

            mazeGenerator.Start_CreatMaze((WidthX + 1) / 2, (WidthY + 1) / 2);

            List <int> coordinate = new List <int>();

            coordinate = mazeGenerator.maze.All_Coordinate();

            int coordinate_range = coordinate.Count;

            for (int i = 0; i < coordinate_range; i += 2)
            {
                Point3D target = new Point3D(coordinate[i], coordinate[i + 1], layer);
                GetAt(target).InsertObj(new Stone(target));
            }
        }