Exemple #1
0
 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;
 }
Exemple #2
0
        public Maze()
        {
            device = Main.Device;
            Width  = MazeBuilder.ElementsPerRow;
            Height = MazeBuilder.ElementsPerRow;
            maze   = MazeBuilder.GenerateMaze();

            SpawnEnemies();
            BuildFloorBuffer();
        }