/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (TDGame game = new TDGame()) { game.Run(); } }
public TDGame() { MainGame = this; this.IsMouseVisible = true; graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; env = new GameUpdater(); Components.Add(env); startScreen = MenuScreen.makeStartScreen(); Components.Add(startScreen); deathScreen = MenuScreen.makeDeathScreen(); Components.Add(deathScreen); winScreen = MenuScreen.makeWinScreen(); Components.Add(winScreen); achievementsViewer = MenuScreen.makeAchievementsScreen(env); Components.Add(achievementsViewer); setActiveComponent(startScreen); }