Ejemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Main game = new Main())
     {
         game.Run();
     }
 }
Ejemplo n.º 2
0
        public Main()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            MAIN = this;
            this.IsMouseVisible = true;

            graphics.PreferredBackBufferWidth = GameUsage.GameWidth;
            graphics.PreferredBackBufferHeight = GameUsage.GameHeight;
        }