Inheritance: CocosSharp.CCScene
		public static void Initialize (CCGameView gameView)
		{
            GameView = gameView;

            var contentSearchPaths = new List<string> () { "Fonts", "Sounds" };

#if __IOS__
            contentSearchPaths.Add("Sounds/iOS/");

#else // android
            contentSearchPaths.Add("Sounds/Android/");


#endif

            contentSearchPaths.Add("Images");
            GameView.ContentManager.SearchPaths = contentSearchPaths;

            // We use a lower-resolution display to get a pixellated appearance
            int width = 384;
			int height = 512;
			GameView.DesignResolution = new CCSizeI (width, height);

            InitializeAudio();

			var scene = new TitleScene (GameView);
			GameView.Director.RunWithScene (scene);
		}
Exemple #2
0
 private void HandleTouchesBegan(List <CCTouch> arg1, CCEvent arg2)
 {
     if (hasGameEnded)
     {
         var newScene = new TitleScene(GameController.GameView);
         GameController.GoToScene(newScene);
     }
 }
 private void HandleTouchesBegan(List<CCTouch> arg1, CCEvent arg2)
 {
     if(hasGameEnded)
     {
         var newScene = new TitleScene(GameController.GameView);
         GameController.GoToScene(newScene);
     }
 }