コード例 #1
0
ファイル: Program.cs プロジェクト: TevenxD/Portfolio
 /// <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;
        }