예제 #1
0
        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);
        }
예제 #2
0
		/// <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)
		{


			DefaultResolution = new CCSize(
						application.MainWindow.WindowSizeInPixels.Width,
						application.MainWindow.WindowSizeInPixels.Height);

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

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

			scene.AddChild(layer);

			mainWindow.RunWithScene(scene);
		}
예제 #3
0
		public override void ApplicationDidFinishLaunching(CCApplication application, CCWindow mainWindow)
		{
			application.ContentRootDirectory = "Content";

			sharedWindow = mainWindow;

			DefaultResolution = new CCSize(
		application.MainWindow.WindowSizeInPixels.Width,
		application.MainWindow.WindowSizeInPixels.Height);

#if NETFX_CORE
			TouchPanel.EnableMouseTouchPoint = true;
			TouchPanel.EnableMouseGestures = true;
			application.Game.IsMouseVisible = true;
#endif
			CCScene scene = new CCScene(sharedWindow);
			CCLayer layer = new IntroLayer(DefaultResolution);

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