示例#1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Main game = new Main())
     {
         game.Run();
     }
 }
示例#2
0
文件: Main.cs 项目: TevenxD/Portfolio
        public Main()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            MAIN = this;
            this.IsMouseVisible = true;

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