Exemplo n.º 1
0
        public GamePage(string launchArguments)
        {
            this.InitializeComponent();

            // Create the game.
            _game = XamlGame <ChaseCamGame> .Create(launchArguments, Window.Current.CoreWindow, this);
        }
        //-------------------------------------------------------------------------------------
        // Class constructors

        public GroundObject(ChaseCamGame game, Texture2D texture)
            : base(game)
        {
            // Have we already built the ground vertex array in a previous instance?
            if (_vertices == null)
            {
                // No, so build it now
                BuildVertices();
            }

            // Set other object properties
            ObjectTexture = texture;
        }
Exemplo n.º 3
0
        //-------------------------------------------------------------------------------------
        // Class constructors

        public CameraObject(ChaseCamGame game)
            : base(game)
        {
        }
        //-------------------------------------------------------------------------------------
        // Class constructors

        public PaperPlaneObject(ChaseCamGame game, Vector3 position, Model model)
            : base(game, position, model)
        {
        }