コード例 #1
0
ファイル: Main.cs プロジェクト: facybenbook/ConversionMaze
 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;
 }
コード例 #2
0
        public Maze()
        {
            device = Main.Device;
            Width  = MazeBuilder.ElementsPerRow;
            Height = MazeBuilder.ElementsPerRow;
            maze   = MazeBuilder.GenerateMaze();

            SpawnEnemies();
            BuildFloorBuffer();
        }