public Terrain(GraphicsDevice gd, GraphicsDeviceManager gdm, Effect e, MazeGame m) { device = gd; graphics = gdm; effect = e; instance = m; }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (MazeGame game = new MazeGame()) { game.Run(); } }
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(); }
static void Main() { using (MazeGame game = new MazeGame()) { instance = game; game.Run(); } }