void LoadLevel(int level) { LevelNumber = level; MazeBuilder.Initialize(LevelNumber); Camera = new Camera(new Vector3(1.2f, 0.8f, 1.2f), Vector3.Zero, 5f); Maze = new Maze(); hud = new HUD(); GameState = GameState.Transition; }
public Maze() { device = Main.Device; Width = MazeBuilder.ElementsPerRow; Height = MazeBuilder.ElementsPerRow; maze = MazeBuilder.GenerateMaze(); SpawnEnemies(); BuildFloorBuffer(); }