コード例 #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            game = new CatGirlsGame(new Point(480, 800));
            game.Start(this);
        }
コード例 #2
0
        public override void FinishedLaunching(UIApplication application)
        {
            var bounds = UIScreen.MainScreen.Bounds;
            Point size = new Point((int)bounds.Width, (int)bounds.Height);

            game = new CatGirlsGame(size);
            game.Run();
        }
コード例 #3
0
        public override void FinishedLaunching(UIApplication application)
        {
            var   bounds = UIScreen.MainScreen.Bounds;
            Point size   = new Point((int)bounds.Width, (int)bounds.Height);

            game = new CatGirlsGame(size);
            game.Run();
        }
コード例 #4
0
ファイル: Program.cs プロジェクト: meds/ChicksnVixens
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            Point size = NamedScreenSizes.Get(args.Length > 0 ? args[0] : null);

            using (CatGirlsGame game = new CatGirlsGame(size))
            {
                game.Run();
            }
        }
コード例 #5
0
ファイル: Program.cs プロジェクト: jlyonsmith/ExEnCopy
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            Point size = NamedScreenSizes.Get(args.Length > 0 ? args[0] : null);

            using (CatGirlsGame game = new CatGirlsGame(size))
            {
                game.Run();
            }
        }
コード例 #6
0
        protected override void SetupMainPage(MainPage mainPage)
        {
            FontSource uiFontSource = new FontSource(Application.GetResourceStream(
                    new Uri("/CatGirls;component/Content/NGO_____.TTF", UriKind.Relative)).Stream);
            FontFamily uiFontFamily = new FontFamily("News Gothic");

            ContentManager.SilverlightFontTranslation("UIFont", new SpriteFontTTF(uiFontSource, uiFontFamily, 16));

            var game = new CatGirlsGame(NamedScreenSizes.Get("web"));
            mainPage.Children.Add(game);
            game.Play();
        }
コード例 #7
0
        protected override void SetupMainPage(MainPage mainPage)
        {
            FontSource uiFontSource = new FontSource(Application.GetResourceStream(
                                                         new Uri("/CatGirls;component/Content/NGO_____.TTF", UriKind.Relative)).Stream);
            FontFamily uiFontFamily = new FontFamily("News Gothic");

            ContentManager.SilverlightFontTranslation("UIFont", new SpriteFontTTF(uiFontSource, uiFontFamily, 16));


            var game = new CatGirlsGame(NamedScreenSizes.Get("web"));

            mainPage.Children.Add(game);
            game.Play();
        }