// Constructor public Maze(GraphicsDevice g) { graphics = g; northNormal = new Vector3(0, 0, 1); southNormal = new Vector3(0, 0, -1); eastNormal = new Vector3(1, 0, 0); westNormal = new Vector3(-1, 0, 0); CreateFloor(); for (int x = 0; x < MAZE_WIDTH; x++) for (int z = 0; z < MAZE_LENGTH; z++) { Grid[x, z] = new Cell(); } GenerateMaze(); wallPoints[0] = new Vector3(0, 1, 0); wallPoints[1] = new Vector3(0, 1, 1); wallPoints[2] = new Vector3(0, 0, 0); wallPoints[3] = new Vector3(0, 0, 1); wallPoints[4] = new Vector3(1, 1, 0); wallPoints[5] = new Vector3(1, 1, 1); wallPoints[6] = new Vector3(1, 0, 0); wallPoints[7] = new Vector3(1, 0, 1); CreateWall(); }
// Constructor public Maze(GraphicsDevice g) { graphics = g; CreateFloor(); for (int x = 0; x < MAZE_WIDTH; x++) for (int z = 0; z < MAZE_HEIGHT; z++) { Grid[x, z] = new Cell(); } GenerateMaze(); wallPoints[0] = new Vector3(0, 1, 0); wallPoints[1] = new Vector3(0, 1, 1); wallPoints[2] = new Vector3(0, 0, 0); wallPoints[3] = new Vector3(0, 0, 1); wallPoints[4] = new Vector3(1, 1, 0); wallPoints[5] = new Vector3(1, 1, 1); wallPoints[6] = new Vector3(1, 0, 0); wallPoints[7] = new Vector3(1, 0, 1); CreateWall(); }