Ejemplo n.º 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);

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

			scene.AddChild(layer);
			sharedWindow.RunWithScene(scene);
		}
Ejemplo n.º 2
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);
        }