예제 #1
0
        public GamePage()
        {
            this.InitializeComponent();

            // Create the game.
            var launchArguments = string.Empty;

            _game = MonoGame.Framework.XamlGame <NeonShooterGame> .Create(launchArguments, Window.Current.CoreWindow, swapChainPanel);
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

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

            SetContentView(_view);
            _game.Run();
        }
예제 #3
0
 static void Main()
 {
     using (var game = new NeonShooterGame())
         game.Run();
 }
예제 #4
0
        static void Main()
        {
            var game = new NeonShooterGame();

            game.Run();
        }
예제 #5
0
 public override void DidFinishLaunching(NSNotification notification)
 {
     game = new NeonShooterGame();
     game.Run();
 }
예제 #6
0
 internal static void RunGame()
 {
     game = new NeonShooterGame();
     game.Run();
 }