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