상속: CocosSharp.CCScene
예제 #1
0
		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);
		}
예제 #2
0
 private void HandleTouchesBegan(List <CCTouch> arg1, CCEvent arg2)
 {
     if (hasGameEnded)
     {
         var newScene = new TitleScene(GameController.GameView);
         GameController.GoToScene(newScene);
     }
 }
예제 #3
0
 private void HandleTouchesBegan(List<CCTouch> arg1, CCEvent arg2)
 {
     if(hasGameEnded)
     {
         var newScene = new TitleScene(GameController.GameView);
         GameController.GoToScene(newScene);
     }
 }