/// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (XNAGame game = new XNAGame())
     {
         game.Run();
         Console.WriteLine("finished");
     }
 }
        public XNAGame()
        {
            selectMode = true;
            instance = this;
            graphics = new GraphicsDeviceManager(this);
            firstRun = false;

            #if WINDOWS
            graphics.PreferredBackBufferWidth = 1024;
            graphics.PreferredBackBufferHeight = 768;
            graphics.PreferMultiSampling = true;
            graphics.IsFullScreen = false;
            graphics.SynchronizeWithVerticalRetrace = true;

            #elif WINDOWS_PHONE
            Graphics.PreferredBackBufferWidth = 240;
            Graphics.PreferredBackBufferHeight = 400;
            #endif
            graphics.ApplyChanges();

            Content.RootDirectory = "Content";
        }