Exemplo n.º 1
0
		// LoadGame is called when CocosSharp is initialized. We can begin creating
		// our CocosSharp objects here:
		void HandleViewCreated (object sender, EventArgs e)
		{
			var gameView = sender as CCGameView;

			if (gameView != null)
			{
				// This sets the game "world" resolution to 100x100:
				gameView.DesignResolution = new CCSizeI (100, 100);

				// GameScene is the root of the CocosSharp rendering hierarchy:
				gameScene = new GameScene (gameView);

				// Starts CocosSharp:
				gameView.RunWithScene (gameScene);
			}
		}