示例#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();
     }
 }
示例#2
0
 static void Main()
 {
     using (var game = new SampleGame())
         game.Run();
 }
示例#3
0
 static void Main()
 {
     using (var game = new SampleGame())
         game.Run();
 }