Beispiel #1
0
 static void Main()
 {
     using (var game = new GameRoot())
     {
         Device.Init(DType.Desktop, new DesktopData(game));
         game.Run();
     }
 }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            var g = new GameRoot();

            SetContentView((View)g.Services.GetService(typeof(View)));
            g.Run();
        }
Beispiel #3
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            _game = new GameRoot();
            _view = _game.Services.GetService(typeof(View)) as View;

            SetContentView(_view);
            _game.Run();
        }
Beispiel #4
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);


            Device.Init(DType.Android, new AndroidData(this));

            var g = new GameRoot();

            SetContentView((View)g.Services.GetService(typeof(View)));
            g.Run();
        }
Beispiel #5
0
 static void Main()
 {
     using (var game = new GameRoot())
         game.Run();
 }
Beispiel #6
0
 internal static void RunGame()
 {
     Device.Init(DType.IOS, new IOSAdapter());
     game = new GameRoot();
     game.Run();
 }
Beispiel #7
0
 static void Main(string[] args)
 {
     using var game = new GameRoot();
     game.Run();
 }