This is the main type for your game.
Inheritance: Microsoft.Xna.Framework.Game
Example #1
0
 static void Main()
 {
     using (var game = new SampleGame())
     {
         //var config = new Config()
         //{
         //    PlatformOS = PlatformOS.Windows,
         //    IsFullscreen = false,
         //    IsMouseAvailable = true,
         //};
         game.Window.AllowUserResizing = true;
         game.Initialize();
         game.Window.ClientSizeChanged += (object sender, EventArgs e) =>
         {
             game.SetClientSize(game.Window.ClientBounds.Width, game.Window.ClientBounds.Height);
         };
         game.Run();
     }
 }
Example #2
0
 static void Main()
 {
     using (var game = new SampleGame())
         game.Run();
 }
Example #3
0
 static void Main()
 {
     using (var game = new SampleGame())
         game.Run();
 }