public JungleTribesGame()
 {
     graphics = new GraphicsDeviceManager(this);
     graphics.PreferredBackBufferWidth  = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width;
     graphics.PreferredBackBufferHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height;
     Resolution.Init(ref graphics);
     Content.RootDirectory = "Content";
     Resolution.SetVirtualResolution(widthScreen, heightScreen);
     Resolution.SetResolution(graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight, false);
     this.IsMouseVisible = true;
     if (Instance == null)
     {
         Instance = this;
     }
 }
Exemple #2
0
 static void Main()
 {
     using (var game = new JungleTribesGame())
         game.Run();
 }