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

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

            _game = MonoGame.Framework.XamlGame <AlienAttackGame> .Create(launchArguments, Window.Current.CoreWindow, swapChainPanel);
        }
        public AlienAttackGame()
        {
            Instance = this;

            _graphics = new GraphicsDeviceManager(this);

            // set our screen size based on the device
            _graphics.PreferredBackBufferWidth  = ScreenWidth;
            _graphics.PreferredBackBufferHeight = ScreenHeight;

            Content.RootDirectory = "Content";
        }