当前位置: 首页>>代码示例>>C#>>正文


C# CCApplication.StartGame方法代码示例

本文整理汇总了C#中CocosSharp.CCApplication.StartGame方法的典型用法代码示例。如果您正苦于以下问题:C# CCApplication.StartGame方法的具体用法?C# CCApplication.StartGame怎么用?C# CCApplication.StartGame使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CocosSharp.CCApplication的用法示例。


在下文中一共展示了CCApplication.StartGame方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FinishedLaunching

		public override void FinishedLaunching (NSObject notification)
		{
            CCApplication application = new CCApplication(false, new CCSize(1024f, 768f));
            application.ApplicationDelegate = new AppDelegate();

            application.StartGame();
        }
开发者ID:460189852,项目名称:cocos-sharp-samples,代码行数:7,代码来源:Program.cs

示例2: Main

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            CCApplication application = new CCApplication(false, new CCSize(1024f, 768f));
            application.ApplicationDelegate = new AppDelegate();

            application.StartGame();
        }
开发者ID:460189852,项目名称:cocos-sharp-samples,代码行数:10,代码来源:Program.cs

示例3: Main

        public static void Main()
        {
            CCApplication application = new CCApplication(false, new CCSize(600f, 800f));
            application.ApplicationDelegate = new AppDelegate();

            application.StartGame();
        }
开发者ID:vividos,项目名称:CocosSharp,代码行数:7,代码来源:Program.cs

示例4: FinishedLaunching

        public override void FinishedLaunching(UIApplication app)
        {
            CCApplication application = new CCApplication();
            application.ApplicationDelegate = new AppDelegate();

            application.StartGame();
        }
开发者ID:altalogix,项目名称:CocosJuce,代码行数:7,代码来源:Program.cs

示例5: FinishedLaunching

        public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
        {
            CCApplication application = new CCApplication ();
            application.ApplicationDelegate = new GameAppDelegate ();

            application.StartGame ();
        }
开发者ID:netonjm,项目名称:CSExtensionKit,代码行数:7,代码来源:AppDelegate.cs

示例6: ServerHandleGame

        /// <summary>
        ///     Метод для работы потока обработчика логики игры
        /// </summary>
        private static void ServerHandleGame(object obj) {
            ServerGame = new ServerGame();
            var application = new CCApplication(false, new CCSize(1, 1));

            ServerGame = new ServerGame();
            application.ApplicationDelegate = ServerGame;
            application.StartGame();
        }
开发者ID:Insality,项目名称:essence-of-shadows,代码行数:11,代码来源:Server.cs

示例7: FinishedLaunching

		public override void FinishedLaunching (UIApplication application)
		{
			var ccApp = new CCApplication {
				ApplicationDelegate = new GameAppDelegate ()
			};

			ccApp.StartGame ();
		}
开发者ID:xamarin,项目名称:mobile-samples,代码行数:8,代码来源:AppDelegate.cs

示例8: Main

        static void Main(string[] args)
        {
            ResourcesLoader.Instance.Args = args;

            CCApplication application = new CCApplication(false, new CCSize(1024f, 768f));
            application.ApplicationDelegate = new AppDelegate();
            application.StartGame();
        }
开发者ID:netonjm,项目名称:CocosSharpSimpleEditor,代码行数:8,代码来源:Program.cs

示例9: OnCreate

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            var application = new CCApplication();
            application.ApplicationDelegate = new GoneBananasApplicationDelegate();
            SetContentView(application.AndroidContentView);
            application.StartGame();
        }
开发者ID:460189852,项目名称:cocos-sharp-samples,代码行数:9,代码来源:MainActivity.cs

示例10: OnCreate

		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			CoinTimeGame.ContentLoading.XmlDeserializer.Self.Activity = this;

			var application = new CCApplication ();
			application.ApplicationDelegate = new GameAppDelegate ();
			SetContentView (application.AndroidContentView);
			application.StartGame ();
		}
开发者ID:ARMoir,项目名称:mobile-samples,代码行数:11,代码来源:MainActivity.cs

示例11: FinishedLaunching

        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override void FinishedLaunching(UIApplication app)
        {
            CCLog.Logger = System.Diagnostics.Debug.WriteLine;

            CCApplication application = new CCApplication();
            application.ApplicationDelegate = new GameAppDelegate();

            application.StartGame();


        }
开发者ID:460189852,项目名称:cocos-sharp-samples,代码行数:18,代码来源:AppDelegate.cs

示例12: OnCreate

        /// <summary>
        /// Called when the activity is about to be created.
        /// </summary>
        /// <param name="bundle">bundle parameter (unused)</param>
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            CCApplication application = new CCApplication();
            application.ApplicationDelegate = new AppDelegate();

            this.SetContentView(application.AndroidContentView);

            application.StartGame();
        }
开发者ID:vividos,项目名称:CocosSharp,代码行数:15,代码来源:MainActivity.cs

示例13: OnCreate

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            var application = new CCApplication();

            // GameAppDelegate is your class that inherits
            // from CCApplicationDelegate
            application.ApplicationDelegate = new GameAppDelegate();
            SetContentView(application.AndroidContentView);
            application.StartGame();
        }
开发者ID:CHANDAN145,项目名称:monodroid-samples,代码行数:12,代码来源:MainActivity.cs

示例14: Main

        private static void Main(string[] args) {
            Log.Print("Starting Essence Client");

            var application = new CCApplication(false, new CCSize(Settings.ScreenWidth, Settings.ScreenHeight)) {
                ApplicationDelegate = new Client()
            };
            try {
                application.StartGame();
            }
            catch (NullReferenceException e) {
                Log.Print("App.StartGame NullPointer!: " + e.StackTrace, LogType.Error);
            }
        }
开发者ID:Insality,项目名称:essence-of-shadows,代码行数:13,代码来源:Program.cs

示例15: OnCreate

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

            MyBouncingGame.GameAppDelegate.activity = this;

            this.VolumeControlStream = Android.Media.Stream.Music;

            application = new CCApplication ();
            application.ApplicationDelegate = new GameAppDelegate ();
            SetContentView (application.AndroidContentView);
            application.StartGame ();
        }
开发者ID:coroner4817,项目名称:MyBouncingGame,代码行数:13,代码来源:MainActivity.cs


注:本文中的CocosSharp.CCApplication.StartGame方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。