public GamePage(string launchArguments)
        {
            this.InitializeComponent();

            // Create the game.
            _game = XamlGame <WindowResizeGame> .Create(launchArguments, Window.Current.CoreWindow, this);
        }
Exemple #2
0
        //-------------------------------------------------------------------------------------
        // Class constructors

        public CubeObject(WindowResizeGame game)
            : base(game)
        {
            // Have we already built the cube vertex array in a previous instance?
            if (_vertices == null)
            {
                // No, so build them now
                BuildVertices();
            }

            Position = new Vector3(0, 0, -3);
        }