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