/// <summary>
		///  Implement CCDirector and CCScene init code here.
		/// </summary>
		/// <returns>
		///  true  Initialize success, app continue.
		///  false Initialize failed, app terminate.
		/// </returns>
		public override void ApplicationDidFinishLaunching(CCApplication application, CCWindow mainWindow)
		{

			preferredWidth = application.MainWindow.WindowSizeInPixels.Width;
			preferredHeight = application.MainWindow.WindowSizeInPixels.Height;

			application.ContentRootDirectory = "Content";
			application.ContentSearchPaths.Add("SD");

			CCScene scene = new CCScene(mainWindow);
			CCLayer layer = new IntroLayer(new CCSize(preferredWidth, preferredHeight));

			scene.AddChild(layer);

			mainWindow.RunWithScene(scene);

		}
        public override void ApplicationDidFinishLaunching(CCApplication application, CCWindow mainWindow)
        {
            application.ContentRootDirectory = "Content";
            sharedWindow = mainWindow;
            DefaultResolution = new CCSize(
            application.MainWindow.WindowSizeInPixels.Width,
            application.MainWindow.WindowSizeInPixels.Height);

            //mainWindow.SetDesignResolutionSize(960, 640, CCSceneResolutionPolicy.ShowAll);
            //application.HandleMediaStateAutomatically = false;
            //mainWindow.DisplayStats = true;

            CCScene scene = new CCScene(sharedWindow);
            CCLayer layer = new IntroLayer(DefaultResolution);

            scene.AddChild(layer);
            sharedWindow.RunWithScene(scene);
        }