public static CCScene GameStartLayerScene (CCWindow mainWindow)
        {
            var scene = new CCScene (mainWindow);
            var layer = new GameStartLayer ();

            scene.AddChild (layer);

            return scene;
        }
Example #2
0
        public static CCScene GameStartLayerScene(CCWindow mainWindow)
        {
            var scene = new CCScene(mainWindow);
            var layer = new GameStartLayer();

            scene.AddChild(layer);

            return(scene);
        }
		public static CCScene GameStartLayerScene (CCWindow mainWindow)
		{
			var scene = new CCScene (mainWindow);

			var winSize = mainWindow.WindowSizeInPixels;
			const float wbase = 640.0f;
			const float hbase = 1136.0f;

			var layer = new GameStartLayer (winSize.Width / wbase, winSize.Height / hbase);

			scene.AddChild (layer);

			return scene;
		}
Example #4
0
        public static CCScene GameStartLayerScene(CCWindow mainWindow)
        {
            var scene = new CCScene(mainWindow);

            var         winSize = mainWindow.WindowSizeInPixels;
            const float wbase   = 640.0f;
            const float hbase   = 1136.0f;

            var layer = new GameStartLayer(winSize.Width / wbase, winSize.Height / hbase);

            scene.AddChild(layer);

            return(scene);
        }
Example #5
0
        public override void ApplicationDidFinishLaunching(CCApplication application, CCWindow mainWindow)
        {
            application.PreferMultiSampling  = false;
            application.ContentRootDirectory = "Content";

            mainWindow.SupportedDisplayOrientations.IsPortrait = CCDisplayOrientation.Portrait;
            application.ContentSearchPaths.Add("hd");

            CCSimpleAudioEngine.SharedEngine.PreloadEffect("Sounds/tap");

            CCScene scene = GameStartLayer.GameStartLayerScene(mainWindow);

            mainWindow.RunWithScene(scene);
        }
        public override void ApplicationDidFinishLaunching(CCApplication application, CCWindow mainWindow)
        {
            application.PreferMultiSampling  = false;
            application.ContentRootDirectory = "Content";

            application.ContentSearchPaths.Add("hd");

            CCSimpleAudioEngine.SharedEngine.PreloadEffect("Sounds/tap");
            CCSimpleAudioEngine.SharedEngine.PreloadBackgroundMusic("Sounds/backgroundMusic");
            CCSize winSize = mainWindow.WindowSizeInPixels;

            CCScene.SetDefaultDesignResolution(winSize.Width, winSize.Height, CCSceneResolutionPolicy.ExactFit);

            CCScene scene = GameStartLayer.GameStartLayerScene(mainWindow);

            mainWindow.RunWithScene(scene);
        }