Example #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (RetroGame game = new RetroGame())
     {
     #if !DEBUG
         AppDomain.CurrentDomain.UnhandledException += GenericExceptionHandler;
     #endif
         game.Run();
     }
 }
Example #2
0
 public RetroGame()
 {
     IsFirstTimePlaying = false;
     graphics = new GraphicsDeviceManager(this);
     graphics.PreferMultiSampling = true;
     Content.RootDirectory = "Content";
     graphics.SynchronizeWithVerticalRetrace = false;
     TargetElapsedTime = new TimeSpan(10000000L / 60L); // target fps
     game = this;
 }