Exemple #1
0
 static void Main()
 {
     // The 'using' idiom guarantees proper resource cleanup.
     // We request 30 UpdateFrame events per second, and unlimited
     // RenderFrame events (as fast as the computer can handle).
     using (Game game = new Game(1280, 720))
     {
         game.Run(60.0);
     }
 }
Exemple #2
0
 static void Main(string[] args)
 {
     Game g = new Game(1280, 720);
     g.Run();
 }