Beispiel #1
0
        // Constructor
        public GamePage()
        {
            InitializeComponent();

            _game = XamlGame <ChaseCamGame> .Create("", this);

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
        //-------------------------------------------------------------------------------------
        // 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;
        }
        //-------------------------------------------------------------------------------------
        // Class constructors

        public PaperPlaneObject(ChaseCamGame game, Vector3 position, Model model)
            : base(game, position, model)
        {
        }
Beispiel #4
0
        //-------------------------------------------------------------------------------------
        // Class constructors

        public CameraObject(ChaseCamGame game)
            : base(game)
        {
        }