예제 #1
0
 public Terrain(GraphicsDevice gd, GraphicsDeviceManager gdm, Effect e, MazeGame m)
 {
     device = gd;
     graphics = gdm;
     effect = e;
     instance = m;
 }
예제 #2
0
파일: Program.cs 프로젝트: iodiot/Maze
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (MazeGame game = new MazeGame())
     {
         game.Run();
     }
 }
예제 #3
0
        static void Main(string[] args)
        {
            //wrong code
            MazeGame mazeGame = new MazeGame();
            Maze     maze     = mazeGame.CreateMaze();

            maze.ShowMaze();
            Console.WriteLine("");
            //builder
            MazeGame    mazeGameMB  = new MazeGame();
            MazeBuilder mazeBuilder = new StandardMazeBuilder();
            Maze        mazeMB      = mazeGameMB.CreateMaze(mazeBuilder);

            mazeMB.ShowMaze();
        }
예제 #4
0
 static void Main()
 {
     using (MazeGame game = new MazeGame())
     {
         instance = game;
         game.Run();
     }
 }